Commit 51bd96c5 authored by nwindis's avatar nwindis
Browse files

color feature minor improvement

related #89
parent 17586f3e
Pipeline #154850 passed with stages
in 3 minutes and 28 seconds
......@@ -238,9 +238,9 @@ As a rule of thumb, every key with a boolean value (e.g. *true* or *false*) defa
},
"standalone": true,
"colors": {
"primary": "false",
"secondary": "false",
"accent": "false"
"primary": false,
"secondary": false,
"accent": false
}
}
</script>
......
......@@ -25,7 +25,7 @@
clickable
@click="() => changeColorsTo('emo')"
v-close-popup
v-if="projectcolors.primary !== 'false'"
v-if="projectcolors.primary"
>
<q-item-section>EMo</q-item-section>
</q-item>
......@@ -57,7 +57,7 @@ export default {
methods: {
changeColorsTo(color) {
if (color === 'default') {
if (this.projectcolors.primary !== 'false') {
if (!this.projectcolors.primary) {
colors.setBrand('primary', this.projectcolors.primary);
colors.setBrand('secondary', this.projectcolors.secondary);
colors.setBrand('accent', this.projectcolors.accent);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment