NIFI-4535 Only update Page Title to root flow name when user has permission.

This closes #2899
This commit is contained in:
patricker 2018-07-16 13:03:05 -06:00 committed by Matt Gilman
parent 59a79c134f
commit 5106dc0af9
No known key found for this signature in database
GPG Key ID: DF61EC19432AEE37
1 changed files with 11 additions and 1 deletions

View File

@ -81,6 +81,8 @@
var MIN_SCALE = 0.2;
var MIN_SCALE_TO_RENDER = 0.6;
var DEFAULT_PAGE_TITLE = '';
var polling = false;
var allowPageRefresh = false;
var groupId = 'root';
@ -172,7 +174,15 @@
rootBreadcrumb = rootBreadcrumb.parentBreadcrumb
}
document.title = rootBreadcrumb.breadcrumb.name;
if(DEFAULT_PAGE_TITLE == ''){
DEFAULT_PAGE_TITLE = document.title;
}
if(rootBreadcrumb.permissions.canRead){
document.title = rootBreadcrumb.breadcrumb.name;
} else {
document.title = DEFAULT_PAGE_TITLE;
}
// update the timestamp
$('#stats-last-refreshed').text(processGroupFlow.lastRefreshed);