Skip to content

Commit

Permalink
#2974 synoptic panel state not loading correctly
Browse files Browse the repository at this point in the history
- Synoptic State now checks the condition when is enabled
  • Loading branch information
YuaFox committed Aug 2, 2024
1 parent 6791491 commit 66edbc1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scadalts-ui/src/components/SynopticPanel/slts/State.vue
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,13 @@ export default {
onPointEnabledUpdate(enabled) {
if(enabled) {
this.changeComponentText(`${this.componentId}_value`, this.lastValue);
this.changeComponentColor(`${this.componentId}`, this.enabledColor);
if(this.lastValue){
this.onPointValueUpdate(this.lastValue)
}else{
// Point does not have any data
this.changeComponentText(`${this.componentId}_value`, "N/A");
this.changeComponentColor(`${this.componentId}`, this.enabledColor);
}
} else {
this.changeComponentText(`${this.componentId}_value`, "N/A");
this.changeComponentColor(`${this.componentId}`, "#d6d5d5");
Expand Down

0 comments on commit 66edbc1

Please sign in to comment.