Fixed missing import template methods screen issue
@@ -28,7 +28,7 @@ export class RegisterNewTemplateController {
if (this.accessControlService.hasAction(AccessControlService.TEMPLATES_IMPORT, actionSet.actions)) {
this.registrationMethods.push({
name: "Import from NiFi", description: "Import a NiFi template directly from the current environment", icon: "near_me",
- iconColor: "#3483BA", onClick: this.createFromNifi()
+ iconColor: "#3483BA", onClick: () => this.createFromNifi()
});
}
});
@@ -39,7 +39,7 @@ export class RegisterNewTemplateController {
if (this.accessControlService.hasAction(AccessControlService.TEMPLATES_IMPORT, actionSet.actions)) {
this.registrationMethods.push({
name: "Import from a file", description: "Import from a Kylo archive or NiFi template file", icon: "file_upload",
- iconColor: "#F08C38", onClick: this.importFromFile()
+ iconColor: "#F08C38", onClick: () => this.importFromFile()
});
}
});
