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:
commit
e516f17141
15 changed files with 147 additions and 196 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue