diff options
author | Joas Schilling <coding@schilljs.com> | 2018-01-17 14:55:48 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2018-02-22 10:17:41 +0100 |
commit | 52f8d75d1af69acfb8bce3a618e89f99cdcde930 (patch) | |
tree | 42ed2179400d6bdd25da08c6f8f4d90b2deb4270 | |
parent | 4b50fe7560444f4c42ba04ea4a034119af907db1 (diff) | |
download | nextcloud-server-52f8d75d1af69acfb8bce3a618e89f99cdcde930.tar.gz nextcloud-server-52f8d75d1af69acfb8bce3a618e89f99cdcde930.zip |
Rename legacy notification so it's less confusing
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | apps/updatenotification/js/legacy-notification.js (renamed from apps/updatenotification/js/notification.js) | 2 | ||||
-rw-r--r-- | apps/updatenotification/lib/AppInfo/Application.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/updatenotification/js/notification.js b/apps/updatenotification/js/legacy-notification.js index a588ede5ffd..d45ba8793c4 100644 --- a/apps/updatenotification/js/notification.js +++ b/apps/updatenotification/js/legacy-notification.js @@ -11,7 +11,7 @@ */ /** - * this gets only loaded if an update is available and then shows a temporary notification + * This only gets loaded if an update is available and the notifications app is not enabled for the user. */ $(document).ready(function(){ var text = t('core', '{version} is available. Get more information on how to update.', {version: oc_updateState.updateVersion}), diff --git a/apps/updatenotification/lib/AppInfo/Application.php b/apps/updatenotification/lib/AppInfo/Application.php index d79f14764de..369b6e3f07d 100644 --- a/apps/updatenotification/lib/AppInfo/Application.php +++ b/apps/updatenotification/lib/AppInfo/Application.php @@ -63,7 +63,7 @@ class Application extends App { } if ($updateChecker->getUpdateState() !== []) { - Util::addScript('updatenotification', 'notification'); + Util::addScript('updatenotification', 'legacy-notification'); \OC_Hook::connect('\OCP\Config', 'js', $updateChecker, 'populateJavaScriptVariables'); } } |