mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-22 04:10:01 +00:00
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:
@@ -74,6 +74,14 @@ export default mixins(userHelpers, pushConnection).extend({
|
||||
available: this.canAccessApiSettings(),
|
||||
activateOnRouteNames: [VIEWS.API_SETTINGS],
|
||||
},
|
||||
{
|
||||
id: 'settings-version-control',
|
||||
icon: 'code-branch',
|
||||
label: this.$locale.baseText('settings.versionControl.title'),
|
||||
position: 'top',
|
||||
available: this.canAccessVersionControl(),
|
||||
activateOnRouteNames: [VIEWS.VERSION_CONTROL],
|
||||
},
|
||||
{
|
||||
id: 'settings-sso',
|
||||
icon: 'user-lock',
|
||||
@@ -151,6 +159,9 @@ export default mixins(userHelpers, pushConnection).extend({
|
||||
canAccessUsageAndPlan(): boolean {
|
||||
return this.canUserAccessRouteByName(VIEWS.USAGE);
|
||||
},
|
||||
canAccessVersionControl(): boolean {
|
||||
return this.canUserAccessRouteByName(VIEWS.VERSION_CONTROL);
|
||||
},
|
||||
canAccessSso(): boolean {
|
||||
return this.canUserAccessRouteByName(VIEWS.SSO_SETTINGS);
|
||||
},
|
||||
@@ -207,6 +218,11 @@ export default mixins(userHelpers, pushConnection).extend({
|
||||
this.$router.push({ name: VIEWS.SSO_SETTINGS });
|
||||
}
|
||||
break;
|
||||
case 'settings-version-control':
|
||||
if (this.$router.currentRoute.name !== VIEWS.VERSION_CONTROL) {
|
||||
this.$router.push({ name: VIEWS.VERSION_CONTROL });
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user