update tabs
This commit is contained in:
@@ -62,13 +62,27 @@
|
||||
});
|
||||
}
|
||||
|
||||
$(document).on('pageshow', "#notificationSettingsPage", function () {
|
||||
function getTabs() {
|
||||
return [
|
||||
{
|
||||
href: 'notificationsettings.html',
|
||||
name: Globalize.translate('TabNotifications')
|
||||
},
|
||||
{
|
||||
href: 'appservices.html?context=notifications',
|
||||
name: Globalize.translate('TabServices')
|
||||
}];
|
||||
}
|
||||
|
||||
var page = this;
|
||||
return function (view, params) {
|
||||
|
||||
require(['paper-fab', 'paper-item-body', 'paper-icon-item'], function () {
|
||||
reload(page);
|
||||
view.addEventListener('viewshow', function () {
|
||||
|
||||
LibraryMenu.setTabs('notifications', 0, getTabs);
|
||||
|
||||
require(['paper-fab', 'paper-item-body', 'paper-icon-item'], function () {
|
||||
reload(view);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user