Feat : Save and import side settings

There were requests from multiple users that
they use squoosh for compression but for each
iteration side settings resets to default
causing issues and there is no way to save and
import side settings.

There will be two buttons adjacent to copy-over

save side settings : This will save side encoder
and latest settings to localstorage of browser

import side settings : This will import side encoder
and latest settings from localstorage of browser and
replace the existing settings

Also if there are saved settings in locaStorage then
whenever user loads the app it will take that settings
and populate the side so user do not have to repeatedly
enter same settings for similar compression operation
subject to user has saved side settings

Update:1

Import settings button remains disabled if there
is nothing to import

Whenever the side setting is saved there will be
event fired and eventually listened to enable import
button

All 2 operations show notifications now

Import notification has undo option

Update : 2

Changed Icon SVGs
This commit is contained in:
Harsh Shah
2023-04-04 15:20:06 +05:30
parent b1df3e1d54
commit 979fba0af1
2 changed files with 21 additions and 17 deletions

View File

@@ -125,7 +125,7 @@
composes: title-button;
svg {
fill: var(--header-text-color);
stroke: var(--header-text-color);
}
}