Browse Source

Fix not add entityLabel for header action open dashboard state (#2601)

pull/2616/head
Vladyslav 7 years ago
committed by GitHub
parent
commit
39ba550d41
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      ui/src/app/components/widget/widget.controller.js

2
ui/src/app/components/widget/widget.controller.js

@ -152,7 +152,7 @@ export default function WidgetController($scope, $state, $timeout, $window, $ocL
var entityInfo = getActiveEntityInfo();
var entityId = entityInfo ? entityInfo.entityId : null;
var entityName = entityInfo ? entityInfo.entityName : null;
var entityLabel = entityInfo && entityInfo.label ? entityInfo.label : null;
var entityLabel = entityInfo && entityInfo.entityLabel ? entityInfo.entityLabel : null;
handleWidgetAction($event, this.descriptor, entityId, entityName, null, entityLabel);
}
widgetContext.customHeaderActions.push(headerAction);

Loading…
Cancel
Save