mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
feat: Add Creator hub link to Templates page (#7721)
Replace the `New Blank Workflow` button with link to the new Creator Hub in the Templates page
This commit is contained in:
committed by
GitHub
parent
c9f6ea141b
commit
4dbae0e2e9
@@ -648,3 +648,5 @@ export const DRAG_EVENT_DATA_KEY = 'nodesAndConnections';
|
||||
|
||||
export const NOT_DUPLICATABE_NODE_TYPES = [FORM_TRIGGER_NODE_TYPE];
|
||||
export const UPDATE_WEBHOOK_ID_NODE_TYPES = [FORM_TRIGGER_NODE_TYPE];
|
||||
|
||||
export const CREATOR_HUB_URL = 'https://creators.n8n.io/hub';
|
||||
|
||||
@@ -1697,7 +1697,7 @@
|
||||
"templates.collectionsNotFound": "Collection could not be found",
|
||||
"templates.connectionWarning": "⚠️ There was a problem fetching workflow templates. Check your internet connection.",
|
||||
"templates.heading": "Workflow templates",
|
||||
"templates.newButton": "New blank workflow",
|
||||
"templates.shareWorkflow": "Share template",
|
||||
"templates.noSearchResults": "Nothing found. Try adjusting your search to see more.",
|
||||
"templates.searchPlaceholder": "Search workflows",
|
||||
"templates.workflows": "Workflows",
|
||||
|
||||
@@ -10,8 +10,11 @@
|
||||
<div :class="$style.button">
|
||||
<n8n-button
|
||||
size="large"
|
||||
:label="$locale.baseText('templates.newButton')"
|
||||
@click="openNewWorkflow"
|
||||
type="secondary"
|
||||
element="a"
|
||||
:href="creatorHubUrl"
|
||||
:label="$locale.baseText('templates.shareWorkflow')"
|
||||
target="_blank"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -90,7 +93,7 @@ import type {
|
||||
} from '@/Interface';
|
||||
import type { IDataObject } from 'n8n-workflow';
|
||||
import { setPageTitle } from '@/utils';
|
||||
import { VIEWS } from '@/constants';
|
||||
import { CREATOR_HUB_URL, VIEWS } from '@/constants';
|
||||
import { debounceHelper } from '@/mixins/debounce';
|
||||
import { useSettingsStore } from '@/stores/settings.store';
|
||||
import { useUsersStore } from '@/stores/users.store';
|
||||
@@ -132,6 +135,7 @@ export default defineComponent({
|
||||
search: '',
|
||||
searchEventToTrack: null as null | ISearchEvent,
|
||||
errorLoadingWorkflows: false,
|
||||
creatorHubUrl: CREATOR_HUB_URL as string,
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
@@ -224,10 +228,6 @@ export default defineComponent({
|
||||
this.searchEventToTrack = null;
|
||||
}
|
||||
},
|
||||
openNewWorkflow() {
|
||||
this.uiStore.nodeViewInitialized = false;
|
||||
void this.$router.push({ name: VIEWS.NEW_WORKFLOW });
|
||||
},
|
||||
onSearchInput(search: string) {
|
||||
this.loadingWorkflows = true;
|
||||
this.loadingCollections = true;
|
||||
|
||||
Reference in New Issue
Block a user