From 8630a14ee89921989ecce6c62c75e3d48230ded6 Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Thu, 28 Apr 2016 16:48:28 -0700 Subject: [PATCH 1/2] Changing license workflow for first time user --- awx/ui/client/src/app.js | 4 ++ .../src/bread-crumb/bread-crumb.partial.html | 4 +- .../src/license/checkLicense.factory.js | 31 ++++++++++++---- awx/ui/client/src/license/license.block.less | 16 +++++++- .../client/src/license/license.controller.js | 21 +++++++++-- .../client/src/license/license.partial.html | 37 +++++++++++++++---- awx/ui/client/src/license/license.route.js | 11 +++++- .../client/src/main-menu/main-menu.block.less | 4 ++ .../src/main-menu/main-menu.partial.html | 12 +++++- awx/ui/templates/ui/index.html | 4 +- 10 files changed, 118 insertions(+), 26 deletions(-) diff --git a/awx/ui/client/src/app.js b/awx/ui/client/src/app.js index d57b217fee..9bebd68d1c 100644 --- a/awx/ui/client/src/app.js +++ b/awx/ui/client/src/app.js @@ -755,6 +755,9 @@ var tower = angular.module('Tower', [ $rootScope.$on("$stateChangeStart", function (event, next, nextParams, prev) { + if (next.name !== 'signOut'){ + CheckLicense.notify(); + } $rootScope.$broadcast("closePermissionsModal"); // this line removes the query params attached to a route if(prev && prev.$$route && @@ -847,6 +850,7 @@ var tower = angular.module('Tower', [ $rootScope.sessionTimer = timer; $rootScope.$emit('OpenSocket'); pendoService.issuePendoIdentity(); + CheckLicense.notify(); }); } } diff --git a/awx/ui/client/src/bread-crumb/bread-crumb.partial.html b/awx/ui/client/src/bread-crumb/bread-crumb.partial.html index 6cdae3acb2..679da65803 100644 --- a/awx/ui/client/src/bread-crumb/bread-crumb.partial.html +++ b/awx/ui/client/src/bread-crumb/bread-crumb.partial.html @@ -1,5 +1,5 @@