tpalfy commented on code in PR #7191:
URL: https://github.com/apache/nifi/pull/7191#discussion_r1301877556
##########
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-controller-service.js:
##########
@@ -633,6 +644,33 @@
// reporting task
var reportingTaskItem =
$('<li></li>').append(reportingTaskState).append(reportingTaskBulletins).append(reportingTaskLink).append(reportingTaskType).append(reportingTaskActiveThreadCount);
tasks.append(reportingTaskItem);
+ } else if (referencingComponent.referenceType ===
'FlowAnalysisRule') {
+ var flowAnalysisRuleLink = $('<span
class="referencing-component-name
link"></span>').text(referencingComponent.name).on('click', function () {
+ var flowAnalysisRuleGrid =
$('#flow-analysis-rules-table').data('gridInstance');
+ var flowAnalysisRuleData =
flowAnalysisRuleGrid.getData();
+
+ // select the selected row
+ var row =
flowAnalysisRuleData.getRowById(referencingComponent.id);
+ flowAnalysisRuleGrid.setSelectedRows([row]);
+ flowAnalysisRuleGrid.scrollRowIntoView(row);
+
+ // select the flow analysis rule tab
+ $('#settings-tabs').find('li:nth-child(4)').click();
Review Comment:
Fixed.
--
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]