feat(editor): Open template credential setup from collection (#7882)

Open the template credential setup when using a template from the
collection view.

NOTE! This feature is still behind a feature flag. To test, set:

```js
localStorage.setItem('template-credentials-setup', 'true')
```


https://github.com/n8n-io/n8n/assets/10324676/46ccec7c-5a44-429e-99ad-1c10640e99e5
This commit is contained in:
Tomi Turtiainen
2023-11-30 14:09:12 +02:00
committed by GitHub
parent 67702c2485
commit 627ddb91fb
8 changed files with 132 additions and 48 deletions

View File

@@ -220,9 +220,7 @@ export const useTemplatesStore = defineStore(STORES.TEMPLATES, {
this.currentSessionId = `templates-${Date.now()}`;
}
},
async fetchTemplateById(
templateId: string,
): Promise<ITemplatesWorkflow | ITemplatesWorkflowFull> {
async fetchTemplateById(templateId: string): Promise<ITemplatesWorkflowFull> {
const settingsStore = useSettingsStore();
const apiEndpoint: string = settingsStore.templatesHost;
const versionCli: string = settingsStore.versionCli;