mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 15:21:13 +03:00
removed the link on the tower logo in portal mode
while in portal mode the tower logo should not take you to the tower dashboard. I removed the href while in portal mode. I also added a function for leaving portal mode which takes the user back to tower dashboardremoved the link on the tower logo in portal mode
This commit is contained in:
parent
742a004f29
commit
fa7277f86a
@ -470,10 +470,13 @@ angular.module('Tower', [
|
||||
//base.replace(/\_/g, ' ');
|
||||
base = (base === 'job_events' || base === 'job_host_summaries') ? 'jobs' : base;
|
||||
}
|
||||
|
||||
//make sure that the tower icon works when not in portal mode
|
||||
$('.navbar-brand').attr('href', '/#/home');
|
||||
$rootScope.portalMode=false;
|
||||
if(base==='portal'){
|
||||
$rootScope.portalMode= true;
|
||||
//in portal mode we don't want the tower icon to lead anywhere
|
||||
$('.navbar-brand').removeAttr('href');
|
||||
}
|
||||
|
||||
$('#ansible-list-title').html('<strong>' + base.replace(/\_/,' ') + '</strong>');
|
||||
@ -579,6 +582,10 @@ angular.module('Tower', [
|
||||
ShowSocketHelp();
|
||||
};
|
||||
|
||||
$rootScope.leavePortal = function() {
|
||||
$location.path('/home/');
|
||||
};
|
||||
|
||||
html = "<a href=\"\" ng-click=\"socketHelp()\" aw-pop-over=\"{{ socketTip }}\" aw-pop-over-watch=\"socketTip\" data-placement=\"bottom\" data-trigger=\"hover\" " +
|
||||
"data-popover-title=\"Live Events\" data-container=\"body\" style=\"font-size: 10px;\"><i class=\"fa icon-socket-{{ socketStatus }}\"></i></a>";
|
||||
e = angular.element(document.getElementById('socket-beacon-div'));
|
||||
|
Loading…
Reference in New Issue
Block a user