1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-02 20:35:25 +02:00

fix(templates): fix an issue when deploying a swarm stack template

This commit is contained in:
Anthony Lapenna 2018-07-12 07:22:02 +02:00
parent 80ee25d817
commit c8c54cf991

View file

@ -164,7 +164,7 @@ function ($scope, $q, $state, $transition$, $anchorScroll, ContainerService, Ima
$scope.state.actionInProgress = true;
if (template.Type === 2) {
createStackFromTemplate(template, userId, accessControlData);
} if (template.Type === 3) {
} else if (template.Type === 3) {
createComposeStackFromTemplate(template, userId, accessControlData);
} else {
createContainerFromTemplate(template, userId, accessControlData);