mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update app buttons
This commit is contained in:
parent
f188ee8847
commit
e2384f3087
10 changed files with 46 additions and 22 deletions
|
@ -533,8 +533,25 @@
|
|||
});
|
||||
}
|
||||
|
||||
function showWelcomeIfNeeded() {
|
||||
|
||||
function showWelcomeIfNeeded(page, displayPreferences) {
|
||||
|
||||
if (displayPreferences.CustomPrefs[homePageTourKey] == homePageDismissValue) {
|
||||
$('.welcomeMessage', page).hide();
|
||||
} else {
|
||||
|
||||
var elem = $('.welcomeMessage', page).show();
|
||||
|
||||
if (displayPreferences.CustomPrefs[homePageTourKey]) {
|
||||
|
||||
$('.tourHeader', elem).html(Globalize.translate('HeaderWelcomeBack'));
|
||||
$('.tourButtonText', elem).html(Globalize.translate('ButtonTakeTheTourToSeeWhatsNew'));
|
||||
|
||||
} else {
|
||||
|
||||
$('.tourHeader', elem).html(Globalize.translate('HeaderWelcomeToMediaBrowserWebClient'));
|
||||
$('.tourButtonText', elem).html(Globalize.translate('ButtonTakeTheTour'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function takeTour(page, userId) {
|
||||
|
@ -581,12 +598,7 @@
|
|||
|
||||
ApiClient.getDisplayPreferences('home', userId, 'webclient').done(function (result) {
|
||||
|
||||
if (result.CustomPrefs[homePageTourKey] == homePageDismissValue) {
|
||||
$('.welcomeMessage', page).hide();
|
||||
} else {
|
||||
$('.welcomeMessage', page).show();
|
||||
}
|
||||
|
||||
showWelcomeIfNeeded(page, result);
|
||||
loadSections(page, userId, result);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue