1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-08 07:15:23 +02:00

fix(api): prevent the use of bind mounts in stacks if setting enabled (#3232)

This commit is contained in:
Anthony Lapenna 2019-10-07 16:12:21 +13:00 committed by GitHub
parent f7480c4ad4
commit fb6f6738d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 97 additions and 5 deletions

View file

@ -1,4 +1,4 @@
import { AccessControlFormData } from '../../../components/accessControlForm/porAccessControlFormModel';
import {AccessControlFormData} from '../../../components/accessControlForm/porAccessControlFormModel';
angular.module('portainer.app')
.controller('CreateStackController', ['$scope', '$state', 'StackService', 'Authentication', 'Notifications', 'FormValidator', 'ResourceControlService', 'FormHelper', 'EndpointProvider',
@ -124,7 +124,7 @@ function ($scope, $state, StackService, Authentication, Notifications, FormValid
$state.go('portainer.stacks');
})
.catch(function error(err) {
Notifications.warning('Deployment error', type === 1 ? err.err.data.err : err.data.err);
Notifications.error('Deployment error', err, 'Unable to deploy stack');
})
.finally(function final() {
$scope.state.actionInProgress = false;