mirror of
https://github.com/portainer/portainer.git
synced 2025-08-04 05:15:25 +02:00
feat(stacks): disable creation when editor or template is empty (#4262)
This commit is contained in:
parent
859d26aef6
commit
d5d7b17dc4
1 changed files with 2 additions and 0 deletions
|
@ -287,7 +287,9 @@
|
||||||
type="button"
|
type="button"
|
||||||
class="btn btn-primary btn-sm"
|
class="btn btn-primary btn-sm"
|
||||||
ng-disabled="state.actionInProgress
|
ng-disabled="state.actionInProgress
|
||||||
|
|| (state.Method === 'editor' && !formValues.StackFileContent)
|
||||||
|| (state.Method === 'upload' && !formValues.StackFile)
|
|| (state.Method === 'upload' && !formValues.StackFile)
|
||||||
|
|| (state.Method === 'template' && (!formValues.StackFileContent || !selectedTemplate))
|
||||||
|| (state.Method === 'repository' && ((!formValues.RepositoryURL || !formValues.ComposeFilePathInRepository) || (formValues.RepositoryAuthentication && (!formValues.RepositoryUsername || !formValues.RepositoryPassword))))
|
|| (state.Method === 'repository' && ((!formValues.RepositoryURL || !formValues.ComposeFilePathInRepository) || (formValues.RepositoryAuthentication && (!formValues.RepositoryUsername || !formValues.RepositoryPassword))))
|
||||||
|| !formValues.Name"
|
|| !formValues.Name"
|
||||||
ng-click="deployStack()"
|
ng-click="deployStack()"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue