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