Fix UI not reacting to settings updates

This commit is contained in:
Tamius Han 2025-01-26 23:56:42 +01:00
parent 5c26e49c17
commit 1f0ebff241
5 changed files with 23 additions and 0 deletions

View File

@ -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());
}
}
}

View File

@ -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());
}
}
}

View File

@ -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;

View File

@ -94,6 +94,10 @@ export default {
components: {
},
methods: {
updateConfig() {
this.settings.init();
this.$nextTick( () => this.$forceUpdate());
}
}
}
</script>

View File

@ -95,6 +95,10 @@ export default {
components: {
},
methods: {
updateConfig() {
this.settings.init();
this.$nextTick( () => this.$forceUpdate());
}
}
}
</script>