Added option to not add played to database
Added Search for inspiration Added song for match point
This commit is contained in:
1 parent
0618f1dd46
commit
bff89236db
7 files changed
+648
-501
No files matched your search
@@ -32,6 +32,16 @@
|
||||
/>
|
||||
<label for="hideTitle">Hide next track</label>
|
||||
</div>
|
||||
<div class="checkboxDiv">
|
||||
<input
|
||||
type="checkbox"
|
||||
name="addPlayed"
|
||||
id="addPlayed"
|
||||
v-model="checkboxAddPlayed"
|
||||
@change="updateOptionAddPlayed"
|
||||
/>
|
||||
<label for="addPlayed">Turn on played to database</label>
|
||||
</div>
|
||||
<div class="checkboxDiv">
|
||||
<input
|
||||
type="checkbox"
|
||||
@@ -74,11 +84,12 @@ export default {
|
||||
show: false,
|
||||
checkboxStopAfterCurrent: false,
|
||||
checkboxHideTitle: false,
|
||||
checkboxAddPlayed: false,
|
||||
checkboxLowPlayed: false,
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
...mapState(["winningScore", "roundStarted", "stopAfterCurrent", "hideNextTrack", "lowPlayed"]),
|
||||
...mapState(["winningScore", "roundStarted", "stopAfterCurrent", "hideNextTrack", "addPlayed", "lowPlayed"]),
|
||||
},
|
||||
methods: {
|
||||
closeModal() {
|
||||
@@ -99,6 +110,13 @@ export default {
|
||||
this.$store.dispatch("updateHideNextTitle", false);
|
||||
}
|
||||
},
|
||||
updateOptionAddPlayed() {
|
||||
if (this.checkboxAddPlayed) {
|
||||
this.$store.dispatch("updateAddPlayed", true);
|
||||
} else {
|
||||
this.$store.dispatch("updateAddPlayed", false);
|
||||
}
|
||||
},
|
||||
updateOptionLowPlayed() {
|
||||
if (this.checkboxLowPlayed) {
|
||||
this.$store.dispatch("updateLowPlayed", true);
|
||||
@@ -124,6 +142,7 @@ export default {
|
||||
mounted() {
|
||||
this.checkboxStopAfterCurrent = this.stopAfterCurrent;
|
||||
this.checkboxHideTitle = this.hideNextTrack;
|
||||
this.checkboxAddPlayed = this.addPlayed;
|
||||
this.checkboxLowPlayed = this.lowPlayed;
|
||||
},
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user