Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[change/admin] Format configuration and configuration variables as indented JSON if the user has only view permission #848

Open
pandafy opened this issue Apr 1, 2024 · 0 comments

Comments

@pandafy
Copy link
Member

pandafy commented Apr 1, 2024

The JSONSchema editor is not shown when the user only has view permission. This also hides the configuration of the device. Moreover, the configuration variables are shown as string representation of Python object:

Screenshot from 2024-04-02 00-47-09

This is not good for UX. We shall show the value of these fields as indented JSON in the UI when the user has read-only permission.

This issue affect both template and device admin pages.


This issue was first found in #840 (review)

@pandafy pandafy added this to To do (general) in OpenWISP Contributor's Board via automation Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
OpenWISP Contributor's Board
  
To do (general)
Development

No branches or pull requests

1 participant