Scada-LTS icon indicating copy to clipboard operation
Scada-LTS copied to clipboard

Fixed graphic component visibility after refreshing page

Open Limraj opened this issue 2 years ago • 0 comments

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:

  1. Login as admin user;
  2. Create 'Virtual Data Source' as 'ds_1' (enabled) and 'Data Point' as 'dp_1' (no change, binary, start value: 0)
  3. Go to 'Modern interface';
  4. Go to 'Graphical Views';
  5. Click on 'Create a new view', and set name 'gv_1';
  6. Click on 'Show components library';
  7. Hover over the 'Binary Graphic' component and when the "+" icon appears, click (as 'cmp_1');
  8. Edit 'cmp_1', go on 'Renderrer', select 'dp_1', select 'Blinking lights' in 'Image set' and click 'Save';
  9. 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

Limraj avatar May 13 '22 14:05 Limraj