Freedom9339 commented on code in PR #7734:
URL: https://github.com/apache/nifi/pull/7734#discussion_r1513378795
##########
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-controller-service.js:
##########
@@ -2624,6 +2788,26 @@
});
},
+ /**
+ * Prompts the user before attempting to move the specified controller
service.
+ *
+ * @param {jQuery} serviceTable
+ * @param {object} controllerServiceEntity
+ */
+ promptToMoveController: function (serviceTable,
controllerServiceEntity) {
+ // prompt for move
+ nfDialog.showYesNoDialog({
+ headerText: 'Move Controller Service',
+ dialogContent: 'Move controller service \'' +
nfCommon.escapeHtml(controllerServiceEntity.component.name) + '\' '
+ + 'to \'' +
nfCommon.escapeHtml($('#move-controller-service-scope').combo('getSelectedOption').text)
+ '\'?'
+ + '<br /><br /><i class="invalid"></i>  '
+ + 'Any reference to this controller service by
processors outside the new scope will be removed.',
+ yesHandler: function () {
+ moveToProcessGroup(serviceTable, controllerServiceEntity,
$('#move-controller-service-scope').combo('getSelectedOption').value);
+ }
+ });
+ },
Review Comment:
Removed prompt. Made it to where the controller service can be moved while
enabled.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]