Skip to content

Commit

Permalink
Merge pull request #312 from blumamir/dest-thumbnail
Browse files Browse the repository at this point in the history
feat: add thumbnail url alongside videourl for destinations
  • Loading branch information
blumamir authored Jul 19, 2023
2 parents 10e8453 + ee0de6d commit 8fb0c08
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions frontend/destinations/data/jaeger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ spec:
- name: JAEGER_URL
displayName: Endpoint
videoUrl: https://www.youtube.com/watch?v=9QZxw-mtZmU
thumbnailUrl: https://www.jaegertracing.io/img/jaeger-logo.png
componentType: input
componentProps:
type: text
1 change: 1 addition & 0 deletions frontend/destinations/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ type Field struct {
Name string `yaml:"name"`
DisplayName string `yaml:"displayName"`
VideoURL string `yaml:"videoUrl"`
ThumbnailURL string `yaml:"thumbnailUrl"`
ComponentType string `yaml:"componentType"`
ComponentProps map[string]interface{} `yaml:"componentProps"`
Secret bool `yaml:"secret"`
Expand Down
2 changes: 2 additions & 0 deletions frontend/endpoints/destinations.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ type Field struct {
ComponentType string `json:"component_type"`
ComponentProperties map[string]interface{} `json:"component_properties"`
VideoUrl string `json:"video_url"`
ThumbnailURL string `json:"thumbnail_url"`
}

func GetDestinationTypeDetails(c *gin.Context) {
Expand All @@ -115,6 +116,7 @@ func GetDestinationTypeDetails(c *gin.Context) {
ComponentType: field.ComponentType,
ComponentProperties: field.ComponentProps,
VideoUrl: field.VideoURL,
ThumbnailURL: field.ThumbnailURL,
})
}

Expand Down

0 comments on commit 8fb0c08

Please sign in to comment.