1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Merge pull request #4724 from grafixeyehero/cleanup-duplicate-userSettings

Cleanup duplicate userSettings from libraryBrowser
This commit is contained in:
Bill Thornton 2023-09-08 15:21:30 -04:00 committed by GitHub
commit e516f17141
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 147 additions and 196 deletions

View file

@ -546,6 +546,24 @@ export class UserSettings {
return this.set(key, JSON.stringify(values));
}
/**
* Get view layout setting.
* @param {string} key - View Setting key.
* @return {string} View Setting value.
*/
getSavedView(key) {
return this.get(key + '-_view');
}
/**
* Set view layout setting.
* @param {string} key - View Setting key.
* @param {string} value - View Setting value.
*/
saveViewSetting(key, value) {
return this.set(key + '-_view', value);
}
/**
* Get subtitle appearance settings.
* @param {string|undefined} key - Settings key.
@ -652,3 +670,5 @@ export const setFilter = currentSettings.setFilter.bind(currentSettings);
export const getFilter = currentSettings.getFilter.bind(currentSettings);
export const customCss = currentSettings.customCss.bind(currentSettings);
export const disableCustomCss = currentSettings.disableCustomCss.bind(currentSettings);
export const getSavedView = currentSettings.getSavedView.bind(currentSettings);
export const saveViewSetting = currentSettings.saveViewSetting.bind(currentSettings);