Skip to content

Commit

Permalink
Replace all toolbar.recordId with ManageIQ.record.recordId
Browse files Browse the repository at this point in the history
  • Loading branch information
ZitaNemeckova committed Sep 25, 2019
1 parent a89c913 commit 06a72ed
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
ManageIQ.angular.app.component('genericObjectDefinitionToolbar', {
bindings: {
recordId: '=?',
entityName: '@?',
redirectUrl: '@?',
},
Expand All @@ -18,10 +17,10 @@ function genericObjectDefinitionToolbarController(API, miqService, $window) {
subscription = listenToRx(function(event) {
toolbar.action = event.type;

if (event.entity && (toolbar.recordId || ManageIQ.gridChecks.length > 0)) {
if (event.entity && (ManageIQ.record.recordId || ManageIQ.gridChecks.length > 0)) {
toolbar.entity = event.entity;

if (toolbar.recordId) {
if (ManageIQ.record.recordId) {
toolbar.genericObjectDefinitions = _.union(toolbar.genericObjectDefinitions, [toolbar.recordId]);
} else {
toolbar.genericObjectDefinitions = ManageIQ.gridChecks;
Expand Down

0 comments on commit 06a72ed

Please sign in to comment.