Fix UI not reacting to settings updates
This commit is contained in:
parent
5c26e49c17
commit
1f0ebff241
@ -585,6 +585,11 @@ export default {
|
||||
|
||||
handleBusTunnelIn(payload) {
|
||||
this.eventBus.send(payload.action, payload.config, payload.routingData);
|
||||
},
|
||||
|
||||
updateConfig() {
|
||||
this.settings.init();
|
||||
this.$nextTick( () => this.$forceUpdate());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -334,6 +334,10 @@ export default {
|
||||
},
|
||||
getRandomColor() {
|
||||
return `rgb(${Math.floor(Math.random() * 128)}, ${Math.floor(Math.random() * 128)}, ${Math.floor(Math.random() * 128)})`;
|
||||
},
|
||||
updateConfig() {
|
||||
this.settings.init();
|
||||
this.$nextTick( () => this.$forceUpdate());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -4,6 +4,12 @@ div, p, span {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.disabled {
|
||||
pointer-events: none;
|
||||
/* color: #666; */
|
||||
filter: contrast(50%) brightness(40%) grayscale(100%);
|
||||
}
|
||||
|
||||
.warning-box {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
|
@ -94,6 +94,10 @@ export default {
|
||||
components: {
|
||||
},
|
||||
methods: {
|
||||
updateConfig() {
|
||||
this.settings.init();
|
||||
this.$nextTick( () => this.$forceUpdate());
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
@ -95,6 +95,10 @@ export default {
|
||||
components: {
|
||||
},
|
||||
methods: {
|
||||
updateConfig() {
|
||||
this.settings.init();
|
||||
this.$nextTick( () => this.$forceUpdate());
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user