mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
panels: Rename "desktop_notifications_panel" => "panels".
The original code made a 3/4-hearted effort to generically accommodate more banners/"panels" later, but named itself after the first one made. [greg: expanded commit message.]
This commit is contained in:
committed by
Greg Price
parent
f485abf522
commit
fe3a5665da
@@ -164,7 +164,7 @@
|
||||
"hotspots": false,
|
||||
"compose_ui": false,
|
||||
"common": false,
|
||||
"desktop_notifications_panel": false
|
||||
"panels": false
|
||||
},
|
||||
"rules": {
|
||||
"array-callback-return": "error",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
var desktop_notifications_panel = (function () {
|
||||
var panels = (function () {
|
||||
|
||||
var exports = {};
|
||||
|
||||
@@ -71,5 +71,5 @@ return exports;
|
||||
}());
|
||||
|
||||
if (typeof module !== 'undefined') {
|
||||
module.exports = desktop_notifications_panel;
|
||||
module.exports = panels;
|
||||
}
|
||||
@@ -263,7 +263,7 @@ exports.resize_page_components = function () {
|
||||
activity.update_scrollbar.users();
|
||||
activity.update_scrollbar.group_pms();
|
||||
|
||||
desktop_notifications_panel.resize_app();
|
||||
panels.resize_app();
|
||||
};
|
||||
|
||||
var _old_width = $(window).width();
|
||||
|
||||
@@ -280,7 +280,7 @@ $(function () {
|
||||
compose.initialize();
|
||||
hotspots.initialize();
|
||||
ui.initialize();
|
||||
desktop_notifications_panel.initialize();
|
||||
panels.initialize();
|
||||
});
|
||||
|
||||
|
||||
|
||||
@@ -1115,7 +1115,7 @@ JS_SPECS = {
|
||||
'js/ui_init.js',
|
||||
'js/emoji_picker.js',
|
||||
'js/compose_ui.js',
|
||||
'js/desktop_notifications_panel.js'
|
||||
'js/panels.js'
|
||||
],
|
||||
'output_filename': 'min/app.js'
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user