summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-05-03 12:28:29 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-05-03 17:26:03 +0200
commitcd516eedcd4cca1abb92d8781749a6f152d34319 (patch)
tree855647c569e930df5f404a3fd56983db57343361 /lib
parent9f76b8b3563e7f001b2adf46dcedf0e2f37c0ffc (diff)
downloadnextcloud-server-cd516eedcd4cca1abb92d8781749a6f152d34319.tar.gz
nextcloud-server-cd516eedcd4cca1abb92d8781749a6f152d34319.zip
Use OC.Notification for update notifications
* instead of a static rendering inside PHP use the JS OC.Notification.showTemporary to hide the notification after 7 seconds automatically * fixes #14811
Diffstat (limited to 'lib')
-rw-r--r--lib/private/templatelayout.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/templatelayout.php b/lib/private/templatelayout.php
index 448276ca7fe..0e1a8f33c45 100644
--- a/lib/private/templatelayout.php
+++ b/lib/private/templatelayout.php
@@ -85,6 +85,7 @@ class OC_TemplateLayout extends OC_Template {
$this->assign('updateAvailable', true);
$this->assign('updateVersion', $data['versionstring']);
$this->assign('updateLink', $data['web']);
+ \OCP\Util::addScript('core', 'update-notification');
} else {
$this->assign('updateAvailable', false); // No update available or not an admin user
}