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

feat(docker/stack): update content of code editor when switching custom template (#4784)

This commit is contained in:
Alice Groux 2021-02-16 00:12:52 +01:00 committed by GitHub
parent 5c1888bfc6
commit 48dbb308ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -158,6 +158,7 @@ angular
$scope.onChangeTemplate = async function onChangeTemplate(template) {
try {
$scope.formValues.StackFileContent = undefined;
$scope.selectedTemplate = template;
$scope.formValues.StackFileContent = await CustomTemplateService.customTemplateFile(template.Id);
} catch (err) {