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:
Michael Abashian 2017-06-13 22:33:44 -04:00 committed by GitHub
commit b53380b961

View File

@ -50,4 +50,18 @@
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);
});
};
}];