mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
fix(editor): Fix workflow back button navigation (#4546)
* 🐛 Fix back button navigation from recetly saved workflow * 🐛 Fix coming-soon routes
This commit is contained in:
@@ -1,69 +1,67 @@
|
||||
<template>
|
||||
<SettingsView>
|
||||
<div :class="$style.container">
|
||||
<div :class="$style.header">
|
||||
<n8n-heading size="2xlarge">
|
||||
{{ $locale.baseText('settings.api') }}
|
||||
<span :style="{ fontSize: 'var(--font-size-s)', color: 'var(--color-text-light)', }">
|
||||
({{ $locale.baseText('beta') }})
|
||||
</span>
|
||||
</n8n-heading>
|
||||
</div>
|
||||
|
||||
<div v-if="apiKey">
|
||||
<p class="mb-s">
|
||||
<n8n-info-tip :bold="false">
|
||||
<i18n path="settings.api.view.info" tag="span">
|
||||
<template #apiAction>
|
||||
<a
|
||||
href="https://docs.n8n.io/api"
|
||||
target="_blank"
|
||||
v-text="$locale.baseText('settings.api.view.info.api')"
|
||||
/>
|
||||
</template>
|
||||
<template #webhookAction>
|
||||
<a
|
||||
href="https://docs.n8n.io/integrations/core-nodes/n8n-nodes-base.webhook/"
|
||||
target="_blank"
|
||||
v-text="$locale.baseText('settings.api.view.info.webhook')"
|
||||
/>
|
||||
</template>
|
||||
</i18n>
|
||||
</n8n-info-tip>
|
||||
</p>
|
||||
<n8n-card class="mb-4xs" :class="$style.card">
|
||||
<span :class="$style.delete">
|
||||
<n8n-link @click="showDeleteModal" :bold="true">
|
||||
{{ $locale.baseText('generic.delete') }}
|
||||
</n8n-link>
|
||||
</span>
|
||||
<div class="ph-no-capture">
|
||||
<CopyInput
|
||||
:label="$locale.baseText('settings.api.view.myKey')"
|
||||
:value="apiKey"
|
||||
:copy-button-text="$locale.baseText('generic.clickToCopy')"
|
||||
:toast-title="$locale.baseText('settings.api.view.copy.toast')"
|
||||
@copy="onCopy"
|
||||
/>
|
||||
</div>
|
||||
</n8n-card>
|
||||
<div :class="$style.hint">
|
||||
<n8n-text size="small">
|
||||
{{ $locale.baseText('settings.api.view.tryapi') }}
|
||||
</n8n-text>
|
||||
<n8n-link :to="apiPlaygroundPath" :newWindow="true" size="small">
|
||||
{{ $locale.baseText('settings.api.view.apiPlayground') }}
|
||||
</n8n-link>
|
||||
</div>
|
||||
</div>
|
||||
<n8n-action-box
|
||||
v-else-if="mounted"
|
||||
:buttonText="$locale.baseText(loading ? 'settings.api.create.button.loading' : 'settings.api.create.button')"
|
||||
:description="$locale.baseText('settings.api.create.description')"
|
||||
@click="createApiKey"
|
||||
/>
|
||||
<div :class="$style.container">
|
||||
<div :class="$style.header">
|
||||
<n8n-heading size="2xlarge">
|
||||
{{ $locale.baseText('settings.api') }}
|
||||
<span :style="{ fontSize: 'var(--font-size-s)', color: 'var(--color-text-light)', }">
|
||||
({{ $locale.baseText('beta') }})
|
||||
</span>
|
||||
</n8n-heading>
|
||||
</div>
|
||||
</SettingsView>
|
||||
|
||||
<div v-if="apiKey">
|
||||
<p class="mb-s">
|
||||
<n8n-info-tip :bold="false">
|
||||
<i18n path="settings.api.view.info" tag="span">
|
||||
<template #apiAction>
|
||||
<a
|
||||
href="https://docs.n8n.io/api"
|
||||
target="_blank"
|
||||
v-text="$locale.baseText('settings.api.view.info.api')"
|
||||
/>
|
||||
</template>
|
||||
<template #webhookAction>
|
||||
<a
|
||||
href="https://docs.n8n.io/integrations/core-nodes/n8n-nodes-base.webhook/"
|
||||
target="_blank"
|
||||
v-text="$locale.baseText('settings.api.view.info.webhook')"
|
||||
/>
|
||||
</template>
|
||||
</i18n>
|
||||
</n8n-info-tip>
|
||||
</p>
|
||||
<n8n-card class="mb-4xs" :class="$style.card">
|
||||
<span :class="$style.delete">
|
||||
<n8n-link @click="showDeleteModal" :bold="true">
|
||||
{{ $locale.baseText('generic.delete') }}
|
||||
</n8n-link>
|
||||
</span>
|
||||
<div class="ph-no-capture">
|
||||
<CopyInput
|
||||
:label="$locale.baseText('settings.api.view.myKey')"
|
||||
:value="apiKey"
|
||||
:copy-button-text="$locale.baseText('generic.clickToCopy')"
|
||||
:toast-title="$locale.baseText('settings.api.view.copy.toast')"
|
||||
@copy="onCopy"
|
||||
/>
|
||||
</div>
|
||||
</n8n-card>
|
||||
<div :class="$style.hint">
|
||||
<n8n-text size="small">
|
||||
{{ $locale.baseText('settings.api.view.tryapi') }}
|
||||
</n8n-text>
|
||||
<n8n-link :to="apiPlaygroundPath" :newWindow="true" size="small">
|
||||
{{ $locale.baseText('settings.api.view.apiPlayground') }}
|
||||
</n8n-link>
|
||||
</div>
|
||||
</div>
|
||||
<n8n-action-box
|
||||
v-else-if="mounted"
|
||||
:buttonText="$locale.baseText(loading ? 'settings.api.create.button.loading' : 'settings.api.create.button')"
|
||||
:description="$locale.baseText('settings.api.create.description')"
|
||||
@click="createApiKey"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
@@ -71,8 +69,7 @@ import { showMessage } from '@/components/mixins/showMessage';
|
||||
import { IUser } from '@/Interface';
|
||||
import mixins from 'vue-typed-mixins';
|
||||
|
||||
import SettingsView from './SettingsView.vue';
|
||||
import CopyInput from '../components/CopyInput.vue';
|
||||
import CopyInput from '@/components/CopyInput.vue';
|
||||
import { mapStores } from 'pinia';
|
||||
import { useSettingsStore } from '@/stores/settings';
|
||||
import { useRootStore } from '@/stores/n8nRootStore';
|
||||
@@ -83,7 +80,6 @@ export default mixins(
|
||||
).extend({
|
||||
name: 'SettingsPersonalView',
|
||||
components: {
|
||||
SettingsView,
|
||||
CopyInput,
|
||||
},
|
||||
data() {
|
||||
|
||||
Reference in New Issue
Block a user