1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-27 17:29:39 +02:00

feat(ui): renovate the Docker volume creation page EE-3514 (#7380)

This commit is contained in:
andres-portainer 2022-08-01 14:46:09 -03:00 committed by GitHub
parent 1e78234f04
commit ff32e87b97
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 30 additions and 20 deletions

View file

@ -38,6 +38,24 @@ angular.module('portainer.docker').controller('CreateVolumeController', [
$scope.formValues.DriverOptions.splice(index, 1);
};
$scope.onUseNFSChange = onUseNFSChange;
function onUseNFSChange(checked) {
return $scope.$evalAsync(() => {
$scope.formValues.NFSData.useNFS = checked;
$scope.formValues.CIFSData.useCIFS = false;
});
}
$scope.onUseCIFSChange = onUseCIFSChange;
function onUseCIFSChange(checked) {
return $scope.$evalAsync(() => {
$scope.formValues.CIFSData.useCIFS = checked;
$scope.formValues.NFSData.useNFS = false;
});
}
function validateForm(accessControlData, isAdmin) {
$scope.state.formValidationError = '';
var error = '';