From 20d23e836ea28198a2cc2234d09362b674f2a19d Mon Sep 17 00:00:00 2001 From: yuri1969 <1969yuri1969@gmail.com> Date: Fri, 1 Sep 2017 21:59:17 +0200 Subject: [PATCH] NIFI-3941 - Clarify tab name for controller-level controller services dialog * Changed the tab title since sharing the name makes things less clear for newcomers. * Suggested info sentence is omitted. This closes #2124. Signed-off-by: Andy LoPresto --- .../WEB-INF/partials/canvas/settings-content.jsp | 2 +- .../src/main/webapp/js/nf/canvas/nf-settings.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/settings-content.jsp b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/settings-content.jsp index 9bbb3aad9b..ca22c04978 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/settings-content.jsp +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/settings-content.jsp @@ -23,7 +23,7 @@
- +
diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-settings.js b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-settings.js index 3f346f5d9f..ee2dfda9da 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-settings.js +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-settings.js @@ -1224,7 +1224,7 @@ name: 'General', tabContentId: 'general-settings-tab-content' }, { - name: 'Controller Services', + name: 'Reporting Task Controller Services', tabContentId: 'controller-services-tab-content' }, { name: 'Reporting Tasks', @@ -1249,9 +1249,9 @@ // update the tooltip on the button $('#new-service-or-task').attr('title', function () { - if (tab === 'Controller Services') { + if (tab === 'Reporting Task Controller Services') { $('#settings-save').hide(); - return 'Create a new controller service'; + return 'Create a new reporting task controller service'; } else if (tab === 'Reporting Tasks') { $('#settings-save').hide(); return 'Create a new reporting task'; @@ -1262,7 +1262,7 @@ $('div.controller-settings-table').css('top', '0'); } - if (tab === 'Controller Services') { + if (tab === 'Reporting Task Controller Services') { $('#controller-cs-availability').show(); } else if (tab === 'Reporting Tasks') { $('#controller-cs-availability').hide(); @@ -1282,7 +1282,7 @@ // create a new controller service or reporting task $('#new-service-or-task').on('click', function () { var selectedTab = $('#settings-tabs li.selected-tab').text(); - if (selectedTab === 'Controller Services') { + if (selectedTab === 'Reporting Task Controller Services') { var controllerServicesUri = config.urls.api + '/controller/controller-services'; nfControllerServices.promptNewControllerService(controllerServicesUri, getControllerServicesTable()); } else if (selectedTab === 'Reporting Tasks') {