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