From 06a72ed1fd4a25f159eb53c98a5a7016cf714a39 Mon Sep 17 00:00:00 2001 From: Zita Nemeckova Date: Wed, 25 Sep 2019 11:34:02 +0200 Subject: [PATCH] Replace all toolbar.recordId with ManageIQ.record.recordId --- .../generic_object/generic-object-definition-toolbar.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/components/generic_object/generic-object-definition-toolbar.js b/app/assets/javascripts/components/generic_object/generic-object-definition-toolbar.js index 472e65cd4d5..d99756996e9 100644 --- a/app/assets/javascripts/components/generic_object/generic-object-definition-toolbar.js +++ b/app/assets/javascripts/components/generic_object/generic-object-definition-toolbar.js @@ -1,6 +1,5 @@ ManageIQ.angular.app.component('genericObjectDefinitionToolbar', { bindings: { - recordId: '=?', entityName: '@?', redirectUrl: '@?', }, @@ -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;