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:
Csaba Tuncsik
2023-04-26 17:52:53 +02:00
committed by GitHub
parent f91923a04b
commit 0c9ce3a2ec
8 changed files with 358 additions and 20 deletions

View File

@@ -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) {