Enable notifications everywhere

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

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

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

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

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

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

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

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

Loading…
Cancel
Save