Fix resetting colors from the color picker

This commit is contained in:
kolaente 2021-01-31 12:19:34 +01:00
parent a33ce3a5b6
commit 467f866c9d
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -65,9 +65,9 @@ export default {
},
},
methods: {
update() {
update(force = false) {
if(this.empty) {
if(this.empty && !force) {
return
}
@ -84,7 +84,7 @@ export default {
// FIXME: I havn't found a way to make it clear to the user the color war reset.
// Not sure if verte is capable of this - it does not show the change when setting this.color = ''
this.color = ''
this.update()
this.update(true)
},
},
}