From becb4decf17acb6f642fc50ff49481c00510bc8d Mon Sep 17 00:00:00 2001 From: Arik Fraimovich Date: Mon, 30 Nov 2015 16:38:42 +0200 Subject: [PATCH] Show in UI if new version available --- rd_ui/app/index.html | 5 ++--- rd_ui/app/scripts/controllers/controllers.js | 2 ++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/rd_ui/app/index.html b/rd_ui/app/index.html index 78c808a3c..1a40901f3 100644 --- a/rd_ui/app/index.html +++ b/rd_ui/app/index.html @@ -125,9 +125,8 @@
-
- re:dash -
+ re:dash + (new re:dash version available)
Docs Contribute diff --git a/rd_ui/app/scripts/controllers/controllers.js b/rd_ui/app/scripts/controllers/controllers.js index 2f94ba4b6..2747223bd 100644 --- a/rd_ui/app/scripts/controllers/controllers.js +++ b/rd_ui/app/scripts/controllers/controllers.js @@ -152,6 +152,8 @@ var MainCtrl = function ($scope, $location, Dashboard, notifications) { $scope.version = clientConfig.version; + $scope.newVersionAvailable = clientConfig.newVersionAvailable && currentUser.hasPermission("admin"); + if (clientConfig.clientSideMetrics) { $scope.$on('$locationChangeSuccess', function(event, newLocation, oldLocation) { // This will be called once per actual page load.