mcgilman commented on code in PR #7562:
URL: https://github.com/apache/nifi/pull/7562#discussion_r1380652773


##########
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-controller-service.js:
##########
@@ -2457,6 +2487,72 @@
                     });
                 }
 
+                //Initialize current status
+                if (options.supportsStatusBar) {
+                    var formattedBulletins = 
nfCommon.getFormattedBulletins(controllerServiceEntity.bulletins);
+                    var unorderedBulletins = 
nfCommon.formatUnorderedList(formattedBulletins);
+
+                    $("#controller-configuration-status-bar").statusbar(
+                        'set',
+                        {
+                            controller: controllerServiceEntity,
+                            bulletins: unorderedBulletins
+                        }
+                    );
+                    
$("#controller-configuration-status-bar").statusbar('showButtons');
+                    
$('#controller-service-configuration').modal('refreshButtons');
+
+                    //Set the stop and configure button
+                    if (nfCommon.isDefinedAndNotNull(options.nfActions) ) {
+                        var cb = function() {
+                            
$('#disable-controller-service-dialog').modal('hide');
+                            
$("#controller-configuration-status-bar").statusbar('hideButtons');
+                            
nfControllerService.showConfiguration(serviceTable, controllerServiceEntity);
+                        };
+
+                        var selection = 
nfCanvasUtils.getSelectionById(controllerServiceEntity.id);
+                        
$("#controller-configuration-status-bar").statusbar('buttons',[{
+                            buttonHtml: '<i class="fa fa-stop 
stop-configure-icon" aria-hidden="true"></i><span>Stop & Configure</span>',

Review Comment:
   This action button should probably reflect Disable & Configure since 
Controller Services do not support a Stopped scheduled state.



-- 
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: issues-unsubscr...@nifi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to