Account icon, (un)check all quests, author notice

This commit is contained in:
Bart van der Braak 2020-02-06 12:57:10 +01:00
parent 5cac478ee5
commit 78b2cb442e
4 changed files with 25 additions and 2 deletions

BIN
src/assets/account.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View file

@ -86,7 +86,16 @@
</b-col> </b-col>
</b-row> </b-row>
<b-row class="shadow py-3"> <b-row class="shadow py-3">
<b-col sm="12" ><h4>Quests Unlocks</h4></b-col> <b-col sm="12" ><h4>Quests Unlocks</h4>
<b-form-checkbox
@change="checkAll($event)"
class="mb-1">
<small class="text-monospace text-muted text-primary" >
Unlocked all
</small>
</b-form-checkbox>
</b-col>
<b-col md="6" xl="4" v-for="questUnlock in configData.questUnlocks" v-bind:key="questUnlock.id"> <b-col md="6" xl="4" v-for="questUnlock in configData.questUnlocks" v-bind:key="questUnlock.id">
<b-form-checkbox <b-form-checkbox
class="mb-1" class="mb-1"
@ -172,6 +181,12 @@ export default {
}; };
fr.readAsText(file); fr.readAsText(file);
}); });
},
checkAll(value) {
let data = this.configData;
data.questUnlocks.forEach(quest=>{
quest.unlock = value;
});
} }
}, },
created() { created() {

View file

@ -34,7 +34,7 @@ export default {
links: [ links: [
{ {
id: 100, id: 100,
icon: 'hiscores.png', icon: 'account.png',
title: 'Account settings', title: 'Account settings',
to: 'config', to: 'config',
}, },

View file

@ -1,3 +1,11 @@
/*
* Copyright (c) 2019, Bart van der Braak
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* @author Bart
*/
import '@babel/polyfill' import '@babel/polyfill'
import 'mutationobserver-shim' import 'mutationobserver-shim'
import 'lodash' import 'lodash'