mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
feat(editor): Add version controls settings (WIP) (#6036)
* feat(editor): Version control paywall (WIP) * fix(editor): remove version control docs link * feat(editor): Adding version control settings (WIP) * feat(editor): Adding version control settings (WIP) * fix(editor): use rest api root path in version control * fix(editor): adding preferences * fix(editor): adding preferences * fix(editor): change store action name
This commit is contained in:
@@ -47,6 +47,7 @@ import { useNodeTypesStore } from './stores/nodeTypes';
|
||||
import { useHistoryHelper } from '@/composables/useHistoryHelper';
|
||||
import { newVersions } from '@/mixins/newVersions';
|
||||
import { useRoute } from 'vue-router/composables';
|
||||
import { useVersionControlStore } from '@/stores/versionControl';
|
||||
|
||||
export default mixins(newVersions, showMessage, userHelpers).extend({
|
||||
name: 'App',
|
||||
@@ -69,6 +70,7 @@ export default mixins(newVersions, showMessage, userHelpers).extend({
|
||||
useTemplatesStore,
|
||||
useUIStore,
|
||||
useUsersStore,
|
||||
useVersionControlStore,
|
||||
),
|
||||
defaultLocale(): string {
|
||||
return this.rootStore.defaultLocale;
|
||||
@@ -196,6 +198,13 @@ export default mixins(newVersions, showMessage, userHelpers).extend({
|
||||
if (this.defaultLocale !== 'en') {
|
||||
await this.nodeTypesStore.getNodeTranslationHeaders();
|
||||
}
|
||||
|
||||
if (
|
||||
this.versionControlStore.isEnterpriseVersionControlEnabled &&
|
||||
this.usersStore.isInstanceOwner
|
||||
) {
|
||||
this.versionControlStore.getPreferences();
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
$route(route) {
|
||||
|
||||
Reference in New Issue
Block a user