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"
|
type="button"
|
||||||
class="btn btn-primary btn-sm"
|
class="btn btn-primary btn-sm"
|
||||||
ng-disabled="state.actionInProgress
|
ng-disabled="state.actionInProgress
|
||||||
|
|| (state.BuildType === 'editor' && formValues.DockerFileContent === '')
|
||||||
|| (state.BuildType === 'upload' && (!formValues.UploadFile || !formValues.Path))
|
|| (state.BuildType === 'upload' && (!formValues.UploadFile || !formValues.Path))
|
||||||
|| (state.BuildType === 'url' && (!formValues.URL || !formValues.Path))
|
|| (state.BuildType === 'url' && (!formValues.URL || !formValues.Path))
|
||||||
|| (formValues.ImageNames.length === 0 || !validImageNames())
|
|| (formValues.ImageNames.length === 0 || !validImageNames())"
|
||||||
|| (formValues.DockerFileContent === '')"
|
|
||||||
ng-click="buildImage()"
|
ng-click="buildImage()"
|
||||||
button-spinner="state.actionInProgress"
|
button-spinner="state.actionInProgress"
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in New Issue