From ccc6e16d2e47c0a155bba1baaba5a360036fd1ee Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Mon, 14 Jul 2014 14:18:11 -0400 Subject: [PATCH] added refresh button to inventory group/host page for when user is not in live mode (websockets disabled) --- awx/ui/static/js/lists/InventoryGroups.js | 6 ++++++ awx/ui/static/js/lists/InventoryHosts.js | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/awx/ui/static/js/lists/InventoryGroups.js b/awx/ui/static/js/lists/InventoryGroups.js index ed147ae0f1..7750283365 100644 --- a/awx/ui/static/js/lists/InventoryGroups.js +++ b/awx/ui/static/js/lists/InventoryGroups.js @@ -78,6 +78,12 @@ angular.module('InventoryGroupsDefinition', []) awToolTip: "Edit inventory properties", ngClick: 'editInventoryProperties()' }, + refresh: { + mode: 'all', + awToolTip: "Refresh the page", + ngClick: "refreshGroups()", + ngShow: "socketStatus == 'error'" + }, stream: { ngClick: "showGroupActivity()", awToolTip: "View Activity Stream", diff --git a/awx/ui/static/js/lists/InventoryHosts.js b/awx/ui/static/js/lists/InventoryHosts.js index ef0c371331..8e4638e242 100644 --- a/awx/ui/static/js/lists/InventoryHosts.js +++ b/awx/ui/static/js/lists/InventoryHosts.js @@ -98,6 +98,12 @@ angular.module('InventoryHostsDefinition', []) ngHide: '!selected_group_id', //disable when 'All Hosts' selected awToolTip: "Create a new host" }, + refresh: { + mode: 'all', + awToolTip: "Refresh the page", + ngClick: "refreshGroups()", + ngShow: "socketStatus == 'error'" + }, stream: { ngClick: "showHostActivity()", awToolTip: "View Activity Stream",