-
Notifications
You must be signed in to change notification settings - Fork 195
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
frontend: PluginSettings: Refactor local storage and plugin data #2671
base: main
Are you sure you want to change the base?
Conversation
005cabd
to
d2f8668
Compare
Last push adds backwards comp so that all settings wont be set to off or on |
I have tried to keep the changes as small as possible to accomplish everything it needs to, I am not using the map object to save information anymore, although to hit these targets I still had to use most of what I had reworked previously for this PR the targets it needs to hit were:
The plugin data comes from the backend, reused the same method of reaching it from the previous rework
The data is now trimmed down to just being the name and isEnabled, it is now being used the same way as the original settings where this local saved item is how new app start ups save plugin settings
The local storage handling logic checks for the old format and changes it to the new format |
d2f8668
to
56e912f
Compare
56e912f
to
c150408
Compare
Some things to do to avoid duplicating of logic:
|
c150408
to
83f279e
Compare
83f279e
to
98c1b58
Compare
Signed-off-by: Vincent T <[email protected]>
98c1b58
to
6cea967
Compare
… local storage changes Signed-off-by: Vincent T <[email protected]>
…settings Signed-off-by: Vincent T <[email protected]>
…n settings Signed-off-by: Vincent T <[email protected]>
Fixes Issue #2595
Description
name
andisEnabled
status in local storage. This ensures plugin settings persist when closing and reopening the app.Changes
name
andisEnabled
) in local storage.How to Test
headlampPluginSettings
headlampPluginSettings
name
andisEnabled
) are fetched from the backend and displayed correctly in the UI.Notes