feat(editor): Version control (WIP) (#6013)

* feat(editor): Version control settings (with feature flag)

* feat(editor): replace posthog feature flag with local storage key
This commit is contained in:
Csaba Tuncsik
2023-04-19 16:01:32 +02:00
committed by GitHub
parent c87262a312
commit 0e0a064fa7
5 changed files with 55 additions and 0 deletions

View File

@@ -40,6 +40,7 @@ import SettingsUsageAndPlanVue from './views/SettingsUsageAndPlan.vue';
import SettingsSso from './views/SettingsSso.vue';
import SignoutView from '@/views/SignoutView.vue';
import SamlOnboarding from '@/views/SamlOnboarding.vue';
import SettingsVersionControl from './views/SettingsVersionControl.vue';
Vue.use(Router);
@@ -572,6 +573,31 @@ export const routes = [
},
},
},
{
path: 'version-control',
name: VIEWS.VERSION_CONTROL,
components: {
settingsView: SettingsVersionControl,
},
meta: {
telemetry: {
pageCategory: 'settings',
getProperties(route: Route) {
return {
feature: 'vc',
};
},
},
permissions: {
allow: {
role: [ROLE.Owner],
},
deny: {
shouldDeny: () => !window.localStorage.getItem('version-control'),
},
},
},
},
{
path: 'sso',
name: VIEWS.SSO_SETTINGS,