Enable notifications everywhere

pull/1/head
yflory 6 years ago
parent 4240d1c0d5
commit 5331eebb3e

@ -857,7 +857,8 @@ define([
'newpad',
'share',
'limit',
'unpinnedWarning'
'unpinnedWarning',
'notifications'
],
title: Title.getTitleConfig(),
metadataMgr: metadataMgr,

@ -167,6 +167,7 @@ MessengerUI, Messages) {
};
var showColors = false;
var updateUserList = function (toolbar, config) {
if (!config.displayed || config.displayed.indexOf('userlist') === -1) { return; }
// Make sure the elements are displayed
var $userButtons = toolbar.userlist;
var $userlistContent = toolbar.userlistContent;
@ -974,11 +975,11 @@ MessengerUI, Messages) {
$n.hide();
return void $button.addClass('fa-bell-o');
}
$button.attr('title', Messages.notifications_title);
if (n > 99) {
n = '99+';
$n.addClass('cp-notifications-small');
}
$button.attr('title', Messages.notifications_title);
$empty.hide();
$n.text(n).show();
$button.addClass('fa-bell');

@ -3641,7 +3641,7 @@ define([
var pageTitle = (!APP.loggedIn && APP.newSharedFolder) ? SHARED_FOLDER_NAME : Messages.type.drive;
var configTb = {
displayed: ['useradmin', 'pageTitle', 'newpad', 'limit'],
displayed: ['useradmin', 'pageTitle', 'newpad', 'limit', 'notifications'],
pageTitle: pageTitle,
metadataMgr: metadataMgr,
readOnly: privateData.readOnly,

@ -1137,7 +1137,8 @@ define([
'newpad',
'share',
'limit',
'unpinnedWarning'
'unpinnedWarning',
'notifications'
],
title: Title.getTitleConfig(),
metadataMgr: metadataMgr,

@ -458,7 +458,7 @@ define([
};
var createToolbar = function () {
var displayed = ['useradmin', 'newpad', 'limit', 'pageTitle'];
var displayed = ['useradmin', 'newpad', 'limit', 'pageTitle', 'notifications'];
var configTb = {
displayed: displayed,
sfCommon: common,

@ -1578,7 +1578,7 @@ define([
privateData = metadataMgr.getPrivateData();
// Toolbar
var displayed = ['useradmin', 'newpad', 'limit', 'pageTitle'];
var displayed = ['useradmin', 'newpad', 'limit', 'pageTitle', 'notifications'];
var configTb = {
displayed: displayed,
sfCommon: common,

@ -232,7 +232,7 @@ define([
var $bar = $('.cp-toolbar-container');
var displayed = ['useradmin', 'newpad', 'limit', 'pageTitle'];
var displayed = ['useradmin', 'newpad', 'limit', 'pageTitle', 'notifications'];
var configTb = {
displayed: displayed,
sfCommon: common,

Loading…
Cancel
Save