mirror of https://github.com/portainer/portainer
fix icon not displayed when template created via upload file (#5659)
parent
50393519ba
commit
49d2c68a19
|
@ -279,9 +279,11 @@ func (payload *customTemplateFromFileUploadPayload) Validate(r *http.Request) er
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.New("Invalid custom template description")
|
return errors.New("Invalid custom template description")
|
||||||
}
|
}
|
||||||
|
|
||||||
payload.Description = description
|
payload.Description = description
|
||||||
|
|
||||||
|
logo, _ := request.RetrieveMultiPartFormValue(r, "Logo", true)
|
||||||
|
payload.Logo = logo
|
||||||
|
|
||||||
note, _ := request.RetrieveMultiPartFormValue(r, "Note", true)
|
note, _ := request.RetrieveMultiPartFormValue(r, "Note", true)
|
||||||
payload.Note = note
|
payload.Note = note
|
||||||
|
|
||||||
|
|
|
@ -30,6 +30,7 @@ class CreateCustomTemplateViewController {
|
||||||
ComposeFilePathInRepository: 'docker-compose.yml',
|
ComposeFilePathInRepository: 'docker-compose.yml',
|
||||||
Description: '',
|
Description: '',
|
||||||
Note: '',
|
Note: '',
|
||||||
|
Logo:'',
|
||||||
Platform: 1,
|
Platform: 1,
|
||||||
Type: 1,
|
Type: 1,
|
||||||
AccessControlData: new AccessControlFormData(),
|
AccessControlData: new AccessControlFormData(),
|
||||||
|
|
Loading…
Reference in New Issue