Merge pull request #329 from mabashian/7491-host-on-off

Disable togglehost when user cannot edit host
This commit is contained in:
Michael Abashian 2017-08-23 18:02:28 -04:00 committed by GitHub
commit 6e12fee5ec
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ export default ['i18n', function(i18n) {
fields: {
toggleHost: {
ngDisabled: 'host.has_inventory_sources',
ngDisabled: '!nested_host.summary_fields.user_capabilities.edit || nested_host.has_inventory_sources',
label: '',
columnClass: 'List-staticColumn--toggle',
type: "toggle",

View File

@ -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",