Changes the ngShow for the Network Visualizer and Remediate Inventory buttons

to only show them on the Details tab (or in the case of Remediate inventory,
only show it on the Details or Hosts tab).
This commit is contained in:
Jared Tabor 2018-06-20 15:27:40 -07:00
parent f3fa3afe93
commit ccb7758b37
No known key found for this signature in database
GPG Key ID: 1B343EC4C3CF7E5C
2 changed files with 9 additions and 7 deletions

View File

@ -161,7 +161,8 @@ export default ['i18n', 'awxNetStrings', function(i18n, awxNetStrings) {
network: {
ngClick: 'goToGraph()',
label: awxNetStrings.get('feature.ACTION_BUTTON'),
class: 'Form-primaryButton'
class: 'Form-primaryButton',
ngShow: "$state.is('inventories.editSmartInventory')"
}
}

View File

@ -174,16 +174,17 @@ function(i18n, awxNetStrings) {
}
},
relatedButtons: {
remediate_inventory: {
ngClick: 'remediateInventory(id, insights_credential)',
ngShow: 'is_insights && mode !== "add" && canRemediate',
label: i18n._('Remediate Inventory'),
class: 'Form-primaryButton'
},
network: {
ngClick: 'goToGraph()',
ngShow: "$state.is('inventories.edit')",
label: awxNetStrings.get('feature.ACTION_BUTTON'),
class: 'Form-primaryButton'
},
remediate_inventory: {
ngClick: 'remediateInventory(id, insights_credential)',
ngShow: "is_insights && mode !== 'add' && canRemediate && ($state.is('inventories.edit') || $state.is('inventories.edit.hosts'))",
label: i18n._('Remediate Inventory'),
class: 'Form-primaryButton'
}
}