mirror of
https://github.com/ansible/awx.git
synced 2026-03-03 09:48:51 -03:30
Disable togglehost when user cannot edit host
This commit is contained in:
@@ -21,7 +21,7 @@ export default ['i18n', function(i18n) {
|
||||
|
||||
fields: {
|
||||
toggleHost: {
|
||||
ngDisabled: 'host.has_inventory_sources',
|
||||
ngDisabled: '!nested_host.summary_fields.user_capabilities.edit || host.has_inventory_sources',
|
||||
label: '',
|
||||
columnClass: 'List-staticColumn--toggle',
|
||||
type: "toggle",
|
||||
|
||||
@@ -20,7 +20,7 @@ export default ['i18n', function(i18n) {
|
||||
|
||||
fields: {
|
||||
toggleHost: {
|
||||
ngDisabled: 'host.has_inventory_sources',
|
||||
ngDisabled: '!host.summary_fields.user_capabilities.edit || host.has_inventory_sources',
|
||||
label: '',
|
||||
columnClass: 'List-staticColumn--toggle',
|
||||
type: "toggle",
|
||||
|
||||
Reference in New Issue
Block a user