From 91cfd2d0f224f4f5978c1d1aa0509a249750a69f Mon Sep 17 00:00:00 2001 From: Matt Hook Date: Thu, 13 Jul 2023 14:22:53 +1200 Subject: [PATCH] fix(templates): show correct icon for tempate [EE-5426] (#9202) * show correct os icon for swarm stacks * add compose edge stack doc comment --- api/portainer.go | 2 +- .../template-item/templateItem.html | 21 +++++++------------ 2 files changed, 9 insertions(+), 14 deletions(-) diff --git a/api/portainer.go b/api/portainer.go index d0c7e8eaa..d2a8cae2d 100644 --- a/api/portainer.go +++ b/api/portainer.go @@ -1120,7 +1120,7 @@ type ( // Mandatory container/stack fields // Template Identifier ID TemplateID `json:"Id" example:"1"` - // Template type. Valid values are: 1 (container), 2 (Swarm stack) or 3 (Compose stack) + // Template type. Valid values are: 1 (container), 2 (Swarm stack), 3 (Compose stack), 4 (Compose edge stack) Type TemplateType `json:"type" example:"1"` // Title of the template Title string `json:"title" example:"Nginx"` diff --git a/app/portainer/components/template-list/template-item/templateItem.html b/app/portainer/components/template-list/template-item/templateItem.html index 3a38ddfdf..ced51a0d4 100644 --- a/app/portainer/components/template-list/template-item/templateItem.html +++ b/app/portainer/components/template-list/template-item/templateItem.html @@ -14,19 +14,14 @@ {{ $ctrl.model.Title }}
-
- - & - -
-
- -
+ + & + {{ $ctrl.typeLabel }}