mirror of
https://github.com/portainer/portainer.git
synced 2025-08-03 21:05:23 +02:00
fix(templates): fix an issue when deploying a swarm stack template
This commit is contained in:
parent
80ee25d817
commit
c8c54cf991
1 changed files with 1 additions and 1 deletions
|
@ -164,7 +164,7 @@ function ($scope, $q, $state, $transition$, $anchorScroll, ContainerService, Ima
|
||||||
$scope.state.actionInProgress = true;
|
$scope.state.actionInProgress = true;
|
||||||
if (template.Type === 2) {
|
if (template.Type === 2) {
|
||||||
createStackFromTemplate(template, userId, accessControlData);
|
createStackFromTemplate(template, userId, accessControlData);
|
||||||
} if (template.Type === 3) {
|
} else if (template.Type === 3) {
|
||||||
createComposeStackFromTemplate(template, userId, accessControlData);
|
createComposeStackFromTemplate(template, userId, accessControlData);
|
||||||
} else {
|
} else {
|
||||||
createContainerFromTemplate(template, userId, accessControlData);
|
createContainerFromTemplate(template, userId, accessControlData);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue