mirror of
https://github.com/foomo/sesamy-cli.git
synced 2025-10-16 12:35:36 +00:00
Merge pull request #106 from foomo/fix/template-reference
fix: use template gallery id
This commit is contained in:
commit
3880d503f1
@ -7,6 +7,9 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func TemplateType(template *tagmanager.CustomTemplate) string {
|
func TemplateType(template *tagmanager.CustomTemplate) string {
|
||||||
|
if template.GalleryReference != nil && template.GalleryReference.GalleryTemplateId != "" {
|
||||||
|
return fmt.Sprintf("cvt_%s", template.GalleryReference.GalleryTemplateId)
|
||||||
|
}
|
||||||
return fmt.Sprintf("cvt_%s_%s", template.ContainerId, template.TemplateId)
|
return fmt.Sprintf("cvt_%s_%s", template.ContainerId, template.TemplateId)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user