mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
unify appSettings
This commit is contained in:
parent
5466e3660a
commit
87e23915c8
21 changed files with 208 additions and 408 deletions
|
@ -132,12 +132,20 @@
|
|||
var homePageDismissValue = '14';
|
||||
var homePageTourKey = 'homePageTour';
|
||||
|
||||
function displayPreferencesKey() {
|
||||
if (AppInfo.isNativeApp) {
|
||||
return 'Emby Mobile';
|
||||
}
|
||||
|
||||
return 'webclient';
|
||||
}
|
||||
|
||||
function dismissWelcome(page, userId) {
|
||||
|
||||
getDisplayPreferences('home', userId).then(function (result) {
|
||||
|
||||
result.CustomPrefs[homePageTourKey] = homePageDismissValue;
|
||||
ApiClient.updateDisplayPreferences('home', result, userId, AppSettings.displayPreferencesKey());
|
||||
ApiClient.updateDisplayPreferences('home', result, userId, displayPreferencesKey());
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -316,7 +324,7 @@
|
|||
|
||||
function getDisplayPreferences(key, userId) {
|
||||
|
||||
return ApiClient.getDisplayPreferences(key, userId, AppSettings.displayPreferencesKey());
|
||||
return ApiClient.getDisplayPreferences(key, userId, displayPreferencesKey());
|
||||
}
|
||||
|
||||
window.HomePage = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue