Skip to content

Commit

Permalink
Fixed Dialogs
Browse files Browse the repository at this point in the history
They actually show now
  • Loading branch information
Jumes-1 committed May 23, 2020
1 parent 3add3a5 commit d602aaa
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 17 deletions.
5 changes: 2 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ <h1>Chest</h1>
</div>
</div>

<div class="modal model-white" v-bind:style="{ display: displayType }">
<div class="modal modal-white" v-bind:class="{ display: selectionModel }">
<div class="modal-dialog">
<div class="modal-content" style="background-color: #585858;">
<div class="modal-container">
Expand Down Expand Up @@ -231,8 +231,7 @@ <h1>Chest</h1>

<div class="modal-footer" style="border-top: 1px solid #484848;">
<slot name="footer">

<button class="btn btn-success" v-bind:click="close">
<button class="btn btn-success" v-on:click="selectionModel = false">
Close
</button>
</slot>
Expand Down
40 changes: 30 additions & 10 deletions js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,34 @@ var app = new Vue({
outputPositions: [],
selected: [],
availablePlants: [
"YHYWGH",
"GYYGGH",
"XYHGHH",
"GYYGYX",
"XYGGHH",
"WHHGYH",
"HYYYGH",
"GGYHYH",
"HGHWGH",
"WGGYYH",
"GGHYWG",
"WHYGGH",
"XGYGHH",
"GWHGGH",
"WYHGYG",
"HGHWHH",
"WYGHYY",
"XGYHYY",
"XHYHGW",
"WGGWYH",
"WHGXYH",
"WGYHGH",
"XGHWYY",
"XHYWYG",
"GGYYYG",
"WGGYYH",
"XHYWYG",
"GGHYWG"
/*"YHYWGH",
"GYGGGW",
"XHGGYY",
"XHGYYH",
Expand All @@ -179,7 +206,7 @@ var app = new Vue({
"GGYWHH",
"XHHGYG",
"WYYHGH",
"WYHYYH",
"WYHYYH",*/
]
},
methods: {
Expand All @@ -189,7 +216,7 @@ var app = new Vue({
this.availablePlants.push(makeCopyOfPlant)
},
calcBestCombination: function (event) {
if (this.availablePlants.length < 2) {
if (this.availablePlants.length < 3) {
return
}

Expand Down Expand Up @@ -282,13 +309,6 @@ var app = new Vue({
console.log(actual);

return actual
},
displayType: function () {
if (this.selectionModel) {
return "block"
} else {
return "none"
}
}
}
})
5 changes: 4 additions & 1 deletion output/css/index.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion output/css/index.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions sass/index.sass
Original file line number Diff line number Diff line change
Expand Up @@ -103,5 +103,9 @@ h1
margin: 2px 0px
width: 40px

.model-white
color: white !important
.model
&.model-white
color: white !important

&.display
display: block

0 comments on commit d602aaa

Please sign in to comment.