Skip to content

Commit 3cf87a1

Browse files
authored
Call chrome's API to register page type and object ID (RedHatInsights#763)
1 parent 9c7b786 commit 3cf87a1

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

src/routes/InventoryDetail.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ const Inventory = ({ entity, currentApp, clearNotifications, loadEntity }) => {
5656
};
5757

5858
useEffect(() => {
59+
insights.chrome.appAction('system-detail');
5960
loadInventory();
6061
}, []);
6162

@@ -65,6 +66,8 @@ const Inventory = ({ entity, currentApp, clearNotifications, loadEntity }) => {
6566

6667
const Wrapper = DetailWrapper || Fragment;
6768

69+
insights.chrome.appObjectId(entity?.id);
70+
6871
return (
6972
<Wrapper
7073
hideInvLink

src/routes/InventoryTable.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ const Inventory = ({
139139
};
140140

141141
useEffect(() => {
142+
insights.chrome.appAction('system-list');
143+
insights.chrome.appObjectId();
142144
loadInventory();
143145
}, []);
144146

0 commit comments

Comments
 (0)