mirror of
https://github.com/ansible/awx.git
synced 2026-05-15 21:37:42 -02:30
Merge pull request #6585 from mabashian/6550-unselect-groups-host-copy
Unselect group when root group checkbox is checked on host move/copy
This commit is contained in:
@@ -50,4 +50,18 @@
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$scope.toggleTargetRootGroup = function(){
|
||||||
|
$scope.selected = !$scope.selected;
|
||||||
|
// cannot perform copy operations to root group level
|
||||||
|
$scope.submitMode = 'move';
|
||||||
|
// toggle off anything currently selected in the list, for clarity
|
||||||
|
_.forEach($scope.groups, (item) => {
|
||||||
|
item.checked = null;
|
||||||
|
});
|
||||||
|
// disable list selections
|
||||||
|
$('#copyMove-list :input').each((idx, el) => {
|
||||||
|
$(el).prop('disabled', (idx, value) => !value);
|
||||||
|
});
|
||||||
|
};
|
||||||
}];
|
}];
|
||||||
|
|||||||
Reference in New Issue
Block a user