mirror of
https://github.com/portainer/portainer.git
synced 2025-07-22 06:49:40 +02:00
feat(edge/templates): introduce custom templates [EE-6208] (#10561)
This commit is contained in:
parent
a0f583a17d
commit
68950fbb24
81 changed files with 2047 additions and 334 deletions
|
@ -24,8 +24,8 @@ export default class KubeCustomTemplatesViewController {
|
|||
this.selectTemplate = this.selectTemplate.bind(this);
|
||||
}
|
||||
|
||||
selectTemplate(template) {
|
||||
this.$state.go('kubernetes.deploy', { templateId: template });
|
||||
selectTemplate(templateId) {
|
||||
this.$state.go('kubernetes.deploy', { templateId });
|
||||
}
|
||||
|
||||
isEditAllowed(template) {
|
||||
|
@ -36,7 +36,8 @@ export default class KubeCustomTemplatesViewController {
|
|||
getTemplates() {
|
||||
return this.$async(async () => {
|
||||
try {
|
||||
this.templates = await this.CustomTemplateService.customTemplates(3);
|
||||
const templates = await this.CustomTemplateService.customTemplates(3);
|
||||
this.templates = templates.filter((t) => !t.EdgeTemplate);
|
||||
} catch (err) {
|
||||
this.Notifications.error('Failed loading templates', err, 'Unable to load custom templates');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue