1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-21 22:39:41 +02:00

refactor(templates): migrate template item to react [EE-6203] (#10429)

This commit is contained in:
Chaim Lev-Ari 2023-10-19 21:09:15 +02:00 committed by GitHub
parent d970f0e2bc
commit 1ad9488ca7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 932 additions and 289 deletions

View file

@ -22,6 +22,11 @@ export default class KubeCustomTemplatesViewController {
this.validateForm = this.validateForm.bind(this);
this.confirmDelete = this.confirmDelete.bind(this);
this.selectTemplate = this.selectTemplate.bind(this);
this.isSelected = this.isSelected.bind(this);
}
isSelected(templateId) {
return this.state.selectedTemplate && this.state.selectedTemplate.Id === templateId;
}
selectTemplate(template) {