Working, but need to store selection in localstorage

This commit is contained in:
Ben Arc
2021-06-29 09:39:12 +01:00
parent b0c0b9f851
commit 78605982fc
4 changed files with 54 additions and 32 deletions
@@ -8,11 +8,6 @@
<q-btn unelevated color="primary" @click="formDialogCopilot.show = true"
>New copilot instance
</q-btn>
<q-select
v-model="theme"
:options="theOptions"
label="Standard"
></q-select>
</q-card-section>
</q-card>
@@ -465,16 +460,7 @@
data: null
},
options: ['bitcoin', 'confetti', 'rocket', 'face', 'martijn', 'rick'],
currencyOptions: ['None', 'btcusd', 'btceur', 'btcgbp'],
theOptions: ['classic', 'dark', 'light', 'green'],
theme: ''
}
},
watch: {
theme(newValue) {
document.body.setAttribute('data-theme', newValue)
console.log(document.body.getAttribute('data-theme'))
console.log(newValue)
currencyOptions: ['None', 'btcusd', 'btceur', 'btcgbp']
}
},
methods: {