cgxp
cgxp copied to clipboard
Disclaimer appear even if the layer is not checked
Is it an intended behaviour that the Disclaimer
appear even if the layer is not checked?
It seems it depends of the presence of the group where the layer is and not of the status of the layer itself.
Have you an URL and an example ?
Yes, here : (link removed)
The disclaimer is defined for the layer "Arrêts de bus"
Hello that's the expected behaviour: the disclaimer panels are displayed (only) the first time the matching layers are added to the layers list whatever they are checked or not. See https://github.com/camptocamp/cgxp/blob/master/core/src/script/CGXP/plugins/Disclaimer.js#L123 The modal disclaimer plugin works the same way.
Ok, thank you for the precision. That was my question.
I wonder if it would not be better to display the disclaimer on the first display of the layer?
I wonder if it would not be better to display the disclaimer on the first display of the layer?
Maybe. I guess the current behaviour was the one initally wished when the plugin was developed. I guess changing to the behaviour you described would be quite a big change.