From 3e51310511973910595bf66c9fc1eec066677b0a Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Wed, 17 Jan 2018 17:01:44 -0800 Subject: [PATCH] Re-enable browser notifications --- data/interfaces/default/base.html | 4 ++ .../default/js/ajaxNotifications.js | 6 +- data/interfaces/default/notifier_config.html | 24 ++++---- plexpy/__init__.py | 1 + plexpy/notifiers.py | 60 ++++++++++--------- plexpy/webserve.py | 3 +- 6 files changed, 54 insertions(+), 44 deletions(-) diff --git a/data/interfaces/default/base.html b/data/interfaces/default/base.html index 5be70a87..58279bdc 100644 --- a/data/interfaces/default/base.html +++ b/data/interfaces/default/base.html @@ -2,6 +2,7 @@ import plexpy from plexpy import version from plexpy.helpers import anon_url + from plexpy.notifiers import BROWSER_NOTIFIERS %> @@ -283,6 +284,9 @@ ${next.modalIncludes()} +% if _session['user_group'] == 'admin' and BROWSER_NOTIFIERS: + +% endif