1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-02 20:35:25 +02:00

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

This commit is contained in:
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

View file

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