feat(metadata): add auto-save metadata feature in editor settings (#2274)
* feat(metadata): add auto-save metadata feature in editor settings Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * feat(reader-preferences): add autoSaveMetadata property to user preferences Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * feat(user-service): add autoSaveMetadata property to user preferences in tests Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> --------- Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
This commit is contained in:
+1
@@ -65,6 +65,7 @@ public class BookLoreUserTransformer {
|
||||
case FILTER_SORTING_MODE -> userSettings.setFilterSortingMode(value);
|
||||
case METADATA_CENTER_VIEW_MODE -> userSettings.setMetadataCenterViewMode(value);
|
||||
case ENABLE_SERIES_VIEW -> userSettings.setEnableSeriesView(Boolean.parseBoolean(value));
|
||||
case AUTO_SAVE_METADATA -> userSettings.setAutoSaveMetadata(Boolean.parseBoolean(value));
|
||||
}
|
||||
}
|
||||
} catch (IllegalArgumentException e) {
|
||||
|
||||
@@ -74,6 +74,7 @@ public class BookLoreUser {
|
||||
public String metadataCenterViewMode;
|
||||
public boolean koReaderEnabled;
|
||||
public boolean enableSeriesView;
|
||||
public boolean autoSaveMetadata;
|
||||
public DashboardConfig dashboardConfig;
|
||||
|
||||
@Data
|
||||
|
||||
+2
-1
@@ -20,7 +20,8 @@ public enum UserSettingKey {
|
||||
METADATA_CENTER_VIEW_MODE("metadataCenterViewMode", false),
|
||||
ENABLE_SERIES_VIEW("enableSeriesView", false),
|
||||
HARDCOVER_API_KEY("hardcoverApiKey", false),
|
||||
HARDCOVER_SYNC_ENABLED("hardcoverSyncEnabled", false);
|
||||
HARDCOVER_SYNC_ENABLED("hardcoverSyncEnabled", false),
|
||||
AUTO_SAVE_METADATA("autoSaveMetadata", false);
|
||||
|
||||
|
||||
private final String dbKey;
|
||||
|
||||
Reference in New Issue
Block a user