fix icon not displayed when template created via upload file (#5659)

pull/5681/head
Richard Wei 2021-09-20 12:20:45 +12:00 committed by GitHub
parent 50393519ba
commit 49d2c68a19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -279,9 +279,11 @@ func (payload *customTemplateFromFileUploadPayload) Validate(r *http.Request) er
if err != nil {
return errors.New("Invalid custom template description")
}
payload.Description = description
logo, _ := request.RetrieveMultiPartFormValue(r, "Logo", true)
payload.Logo = logo
note, _ := request.RetrieveMultiPartFormValue(r, "Note", true)
payload.Note = note

View File

@ -30,6 +30,7 @@ class CreateCustomTemplateViewController {
ComposeFilePathInRepository: 'docker-compose.yml',
Description: '',
Note: '',
Logo:'',
Platform: 1,
Type: 1,
AccessControlData: new AccessControlFormData(),