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:
parent
f7480c4ad4
commit
fb6f6738d9
6 changed files with 97 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue