mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
cleanup duplicate userSettings from libraryBrowser
This commit is contained in:
parent
d8c25b4594
commit
1825b821af
15 changed files with 147 additions and 196 deletions
|
@ -533,6 +533,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.
|
||||
|
@ -638,3 +656,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