Do not modify the calibration type when updating the calibration page
Description
At the moment, the calibration type in the Calibration application is modified as soon as the calibration type is changed. This is not practical for multiple reasons:
- If the calibration web interface is already opened, the interface will not necessarily behave as expected (need to go back and forth between scan types).
- Multiple users looking in the calibration interface in parallel will interfere with each other.
- Scripting the calibration actions is made more complicated than needed.
One should make independent the web interface updates and application of the settings.
Possible fixes
A possible easy fix is:
- The
setCalTypefunction should not set them_calTypevariable, but merely return the new web interface fragment:- Ideally the function is renamed and moved to the
CalibrationWebclass (separation of concerns). - The utility of
m_calTypecan also be re-evaluated.
- Ideally the function is renamed and moved to the
- The
cal_type_selectvariable is already sent to theapplyActionfunction and can simply be retrieved from there.