mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
re-organize user preferences
This commit is contained in:
parent
b33e90dae7
commit
13a2268043
12 changed files with 723 additions and 695 deletions
|
@ -107,7 +107,7 @@
|
|||
getDisplayPreferences('home', userId).done(function (result) {
|
||||
|
||||
result.CustomPrefs[homePageTourKey] = homePageDismissValue;
|
||||
ApiClient.updateDisplayPreferences('home', result, userId, getDisplayPreferencesAppName());
|
||||
ApiClient.updateDisplayPreferences('home', result, userId, AppSettings.displayPreferencesKey());
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -249,18 +249,9 @@
|
|||
|
||||
});
|
||||
|
||||
function getDisplayPreferencesAppName() {
|
||||
|
||||
if (AppInfo.isNativeApp) {
|
||||
return 'Emby Mobile';
|
||||
}
|
||||
|
||||
return 'webclient';
|
||||
}
|
||||
|
||||
function getDisplayPreferences(key, userId) {
|
||||
|
||||
return ApiClient.getDisplayPreferences(key, userId, getDisplayPreferencesAppName()).done(function (result) {
|
||||
return ApiClient.getDisplayPreferences(key, userId, AppSettings.displayPreferencesKey()).done(function (result) {
|
||||
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue