fix(images/build): enforce file content length only when using the editor (#7630)

pull/7561/head
LP B 2022-09-08 02:32:36 +02:00 committed by GitHub
parent 0fe2ddf535
commit ea05814af4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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"
> >