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

2.1.1
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
1 changed files with 1 additions and 0 deletions

View File

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