-
-
Notifications
You must be signed in to change notification settings - Fork 190
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
[bug] Multiple UI issues in configuration editor for Device #910
Labels
Comments
I will open a PR for the bug fix in the next days. |
Thank you very much for reporting this @okraits @kkreitmair, I didn't notice this yet. |
kkreitmair
added a commit
that referenced
this issue
Aug 23, 2024
For select fields, with predefined values in the corresponding JSON schema, when a value is saved other than the default, the field will be empty after saving in the Device config editor. This happens only, in combination of the lib select2. The cause of the issue is, that the jsonschema-ui.js version does use a deprecated way to initialize select2 inputs. This commit will fix this issue by updating the way of initializing the inputs. Fixes #910 Signed-off-by: Konrad Kreitmair <[email protected]>
kkreitmair
added a commit
that referenced
this issue
Aug 23, 2024
…910 This addresses the problem, that the drop-down for Configuration Menu and Object Properties are not shown anymore in the device config editor, if a configuration section is saved, which has in its JSON schema definition a property with type array and should have unique items. The cause of the problem is a call to super, when there is no super. This commit will fix this issue by removing the call to super, because it is not needed in this special case neither in all other cases. Fixes #910 Signed-off-by: Konrad Kreitmair <[email protected]>
nemesifier
pushed a commit
that referenced
this issue
Sep 5, 2024
…910 This addresses the problem, that the drop-down for Configuration Menu and Object Properties are not shown anymore in the device config editor, if a configuration section is saved, which has in its JSON schema definition a property with type array and should have unique items. The cause of the problem is a call to super, when there is no super. This commit will fix this issue by removing the call to super, because it is not needed in this special case neither in all other cases. Fixes #910 Signed-off-by: Konrad Kreitmair <[email protected]>
praptisharma28
pushed a commit
that referenced
this issue
Sep 9, 2024
For select fields, with predefined values in the corresponding JSON schema, when a value is saved other than the default, the field will be empty after saving in the Device config editor. This happens only, in combination of the lib select2. The cause of the issue is, that the jsonschema-ui.js version does use a deprecated way to initialize select2 inputs. This commit will fix this issue by updating the way of initializing the inputs. Fixes #910 Signed-off-by: Konrad Kreitmair <[email protected]>
praptisharma28
pushed a commit
that referenced
this issue
Sep 9, 2024
…910 This addresses the problem, that the drop-down for Configuration Menu and Object Properties are not shown anymore in the device config editor, if a configuration section is saved, which has in its JSON schema definition a property with type array and should have unique items. The cause of the problem is a call to super, when there is no super. This commit will fix this issue by removing the call to super, because it is not needed in this special case neither in all other cases. Fixes #910 Signed-off-by: Konrad Kreitmair <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
There are two bugs in the configuration default editor for a Device in the admin.
select2
. See also corresponding GIF below.Configuration Menu
andObject Properties
are not shown anymore, if a configuration section is saved, which has in its JSON schema definition a property with type array and should have unique items (such as Mwan3) . See also corresponding GIF below.Steps To Reproduce
Steps to reproduce the behavior for the 1. Issue:
General
.Save and continue editing
.General
. The previous selected and saved value is not shown.Steps to reproduce the behavior for the 2. Issue:
Mwan3
. (I patched this into netjsonconfig from WIP: Openwrt: Add support for mwan3 netjsonconfig#232 because it has a property in its schema definition with type array and allows only unique items)Save and continue editing
.Configuration Menu
. The menu dropdown will not show up, but all configuration fields will be disabled.Expected behavior
Expected behavior for the 1. Issue:
The saved value, should always be displayed.
Expected behavior for the 2. Issue:
The dropdown menu of the
Configuration Menu
and theObject Properties
should be always displayed.Screenshots
GIF for showing the 1. Issue:
GIF for showing the 2. Issue:
System Information:
The text was updated successfully, but these errors were encountered: