Ignore combat level, remove unused elements (edit columns)

This commit is contained in:
Bart van der Braak 2020-02-06 13:51:30 +01:00
parent 78b2cb442e
commit 69fef0bcee
3 changed files with 18 additions and 15 deletions

View file

@ -39,9 +39,19 @@
v-model="statUnlock.value.current"
debounce="500"
type="number"
:disabled="statUnlock.ignore === 'true'"
:min="statUnlock.value.min"
:max="statUnlock.value.max">
</b-form-input>
<div class="input-group-append" v-if="statUnlock.hasOwnProperty('ignore')">
<span class="input-group-text">
<b-form-checkbox
@change="ignoreStat(statUnlock, $event)"
:checked="statUnlock.ignore === 'true'"
v-b-tooltip.hover.right
:title="'Ignore '+statUnlock.name"></b-form-checkbox>
</span>
</div>
</div>
</b-col>
</b-row>
@ -187,10 +197,13 @@ export default {
data.questUnlocks.forEach(quest=>{
quest.unlock = value;
});
},
ignoreStat(obj, value) {
this.configData.statUnlocks.filter(stat => stat.id === obj.id)[0].ignore = value.toString()
}
},
created() {
this.setRemember()
this.setRemember();
},
watch: {
configFile() {