mirror of
https://github.com/ansible/awx.git
synced 2026-01-17 20:51:21 -03:30
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:
parent
f3fa3afe93
commit
ccb7758b37
@ -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')"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user