mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
refactor(editor): Apply Prettier (no-changelog) (#4920)
* ⚡ Adjust `format` script * 🔥 Remove exemption for `editor-ui` * 🎨 Prettify * 👕 Fix lint
This commit is contained in:
@@ -13,7 +13,9 @@
|
||||
</div>
|
||||
</div>
|
||||
<div :class="$style.notFound" v-else>
|
||||
<n8n-text color="text-base">{{ $locale.baseText('templates.collectionsNotFound') }}</n8n-text>
|
||||
<n8n-text color="text-base">{{
|
||||
$locale.baseText('templates.collectionsNotFound')
|
||||
}}</n8n-text>
|
||||
</div>
|
||||
</template>
|
||||
<template v-if="!notFoundError" #content>
|
||||
@@ -74,9 +76,7 @@ export default mixins(workflowHelpers).extend({
|
||||
TemplatesView,
|
||||
},
|
||||
computed: {
|
||||
...mapStores(
|
||||
useTemplatesStore,
|
||||
),
|
||||
...mapStores(useTemplatesStore),
|
||||
collection(): null | ITemplatesCollectionFull {
|
||||
return this.templatesStore.getCollectionById(this.collectionId);
|
||||
},
|
||||
@@ -110,10 +110,10 @@ export default mixins(workflowHelpers).extend({
|
||||
}
|
||||
}, 50);
|
||||
},
|
||||
onOpenTemplate({event, id}: {event: MouseEvent, id: string}) {
|
||||
onOpenTemplate({ event, id }: { event: MouseEvent; id: string }) {
|
||||
this.navigateTo(event, VIEWS.TEMPLATE, id);
|
||||
},
|
||||
onUseWorkflow({event, id}: {event: MouseEvent, id: string}) {
|
||||
onUseWorkflow({ event, id }: { event: MouseEvent; id: string }) {
|
||||
const telemetryPayload = {
|
||||
template_id: id,
|
||||
wf_template_repo_session_id: this.workflowsStore.currentSessionId,
|
||||
@@ -138,8 +138,7 @@ export default mixins(workflowHelpers).extend({
|
||||
collection(collection: ITemplatesCollection) {
|
||||
if (collection) {
|
||||
setPageTitle(`n8n - Template collection: ${collection.name}`);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
setPageTitle(`n8n - Templates`);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user