mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
fix(editor): Make workflow history button available only for dev builds (#7392)
Github issue / Community forum post (link here to close automatically): --------- Co-authored-by: Csaba Tuncsik <csaba.tuncsik@gmail.com>
This commit is contained in:
@@ -349,8 +349,9 @@ export default defineComponent({
|
||||
return actions;
|
||||
},
|
||||
isWorkflowHistoryFeatureEnabled(): boolean {
|
||||
return this.settingsStore.isEnterpriseFeatureEnabled(
|
||||
EnterpriseEditionFeature.WorkflowHistory,
|
||||
return (
|
||||
this.settingsStore.isEnterpriseFeatureEnabled(EnterpriseEditionFeature.WorkflowHistory) &&
|
||||
this.settingsStore.isDevRelease
|
||||
);
|
||||
},
|
||||
workflowHistoryRoute(): { name: string; params: { workflowId: string } } {
|
||||
|
||||
@@ -185,6 +185,9 @@ export const useSettingsStore = defineStore(STORES.SETTINGS, {
|
||||
this.userManagement.quota === -1 || this.userManagement.quota > userStore.allUsers.length
|
||||
);
|
||||
},
|
||||
isDevRelease(): boolean {
|
||||
return this.settings.releaseChannel === 'dev';
|
||||
},
|
||||
},
|
||||
actions: {
|
||||
setSettings(settings: IN8nUISettings): void {
|
||||
|
||||
Reference in New Issue
Block a user