mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 15:21:13 +03:00
Disable togglehost when user cannot edit host
This commit is contained in:
parent
0cbe083dcf
commit
51c3d77a92
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user