mirror of
https://github.com/portainer/portainer.git
synced 2025-08-04 05:15:25 +02:00
fix(edge/stacks): clear templates values on change method [EE-6390] (#10707)
This commit is contained in:
parent
5c59c53e91
commit
7a9436dad7
3 changed files with 13 additions and 5 deletions
|
@ -1,3 +1,4 @@
|
|||
import { getInitialTemplateValues } from '@/react/edge/edge-stacks/CreateView/TemplateFieldset';
|
||||
import { editor, git, edgeStackTemplate, upload } from '@@/BoxSelector/common-options/build-methods';
|
||||
|
||||
class DockerComposeFormController {
|
||||
|
@ -25,6 +26,7 @@ class DockerComposeFormController {
|
|||
onChangeMethod(method) {
|
||||
this.state.Method = method;
|
||||
this.formValues.StackFileContent = '';
|
||||
this.setTemplateValues(getInitialTemplateValues());
|
||||
}
|
||||
|
||||
onChangeFileContent(value) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue