🐛 (account) fix account being saved on account setting page init
This commit is contained in:
@@ -77,8 +77,8 @@ export default class ColorPicker extends Vue {
|
|||||||
|
|
||||||
@Watch('localColor')
|
@Watch('localColor')
|
||||||
public onColorChange(color: string | null, oldColor: string | null) {
|
public onColorChange(color: string | null, oldColor: string | null) {
|
||||||
this.$emit('input', color)
|
if (this.color !== color) {
|
||||||
if (oldColor !== color) {
|
this.$emit('input', color)
|
||||||
this.$emit('color-change')
|
this.$emit('color-change')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user