Scada-LTS
Scada-LTS copied to clipboard
Fixed graphic component visibility after refreshing page
Actual behavior If you refresh the page from the graphical view for graphic component with a point that doesn't change, this causes the component to disappear. Only when the point value changes does the component reappear. The problem does not apply to, for example, "Simple Point".
Expected behavior The last read state should be saved in graphic components and displayed, even if the value has not changed.
Applies to components:
- Analog graphic
- Binary graphic
- Multistate graphic
To Reproduce Steps to reproduce the behavior:
- Login as admin user;
- Create 'Virtual Data Source' as 'ds_1' (enabled) and 'Data Point' as 'dp_1' (no change, binary, start value: 0)
- Go to 'Modern interface';
- Go to 'Graphical Views';
- Click on 'Create a new view', and set name 'gv_1';
- Click on 'Show components library';
- Hover over the 'Binary Graphic' component and when the "+" icon appears, click (as 'cmp_1');
- Edit 'cmp_1', go on 'Renderrer', select 'dp_1', select 'Blinking lights' in 'Image set' and click 'Save';
- Click on "Create", and refresh page, component 'cmp_1' disappears -> error
Fixed errors
- [ ] Loading components when refreshing the entire page;
- [ ] Loading components when switching between views;
- [ ] #2235
- [ ] #2234
- [ ] #2233
- [x] #2232
Spec:
- Browser Chrome/Firefox
- Version 2.7
pr: https://github.com/SCADA-LTS/Scada-LTS/pull/2241