1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-04 13:25:26 +02:00

feat(templates): new templates capabilities (#862)

This commit is contained in:
Anthony Lapenna 2017-05-18 23:00:08 +02:00 committed by GitHub
parent c3363604ac
commit 0579251c70
10 changed files with 276 additions and 159 deletions

View file

@ -1,8 +1,9 @@
function TemplateViewModel(data) {
this.Title = data.title;
this.Description = data.description;
this.Note = data.note ? data.note : data.description;
this.Category = data.category;
this.Note = data.note;
this.Categories = data.categories ? data.categories : [];
this.Platform = data.platform ? data.platform : '';
this.Logo = data.logo;
this.Image = data.image;
this.Registry = data.registry ? data.registry : '';