Fix UI and rendering issues in the notifications panel

This commit is contained in:
yflory
2019-09-03 17:58:56 +02:00
parent 2411932229
commit a8ec344203
4 changed files with 55 additions and 49 deletions

View File

@@ -8,6 +8,7 @@ define([
'/common/hyperscript.js',
'/customize/messages.js',
'/common/common-interface.js',
'/common/notifications.js',
'css!/bower_components/bootstrap/dist/css/bootstrap.min.css',
'css!/bower_components/components-font-awesome/css/font-awesome.min.css',
@@ -21,7 +22,8 @@ define([
SFCommon,
h,
Messages,
UI
UI,
Notifications
)
{
var APP = {};
@@ -44,7 +46,7 @@ define([
],
};
var notifsAllowedTypes = ["FRIEND_REQUEST", "FRIEND_REQUEST_ACCEPTED", "FRIEND_REQUEST_DECLINED", "SHARE_PAD", "REQUEST_PAD_ACCESS"];
var notifsAllowedTypes = Notifications.allowed;
var create = {};