mirror of https://github.com/portainer/portainer
fix(images/build): enforce file content length only when using the editor (#7630)
parent
0fe2ddf535
commit
ea05814af4
|
@ -211,10 +211,10 @@
|
|||
type="button"
|
||||
class="btn btn-primary btn-sm"
|
||||
ng-disabled="state.actionInProgress
|
||||
|| (state.BuildType === 'editor' && formValues.DockerFileContent === '')
|
||||
|| (state.BuildType === 'upload' && (!formValues.UploadFile || !formValues.Path))
|
||||
|| (state.BuildType === 'url' && (!formValues.URL || !formValues.Path))
|
||||
|| (formValues.ImageNames.length === 0 || !validImageNames())
|
||||
|| (formValues.DockerFileContent === '')"
|
||||
|| (formValues.ImageNames.length === 0 || !validImageNames())"
|
||||
ng-click="buildImage()"
|
||||
button-spinner="state.actionInProgress"
|
||||
>
|
||||
|
|
Loading…
Reference in New Issue