mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +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;
|
return actions;
|
||||||
},
|
},
|
||||||
isWorkflowHistoryFeatureEnabled(): boolean {
|
isWorkflowHistoryFeatureEnabled(): boolean {
|
||||||
return this.settingsStore.isEnterpriseFeatureEnabled(
|
return (
|
||||||
EnterpriseEditionFeature.WorkflowHistory,
|
this.settingsStore.isEnterpriseFeatureEnabled(EnterpriseEditionFeature.WorkflowHistory) &&
|
||||||
|
this.settingsStore.isDevRelease
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
workflowHistoryRoute(): { name: string; params: { workflowId: string } } {
|
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
|
this.userManagement.quota === -1 || this.userManagement.quota > userStore.allUsers.length
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
isDevRelease(): boolean {
|
||||||
|
return this.settings.releaseChannel === 'dev';
|
||||||
|
},
|
||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
setSettings(settings: IN8nUISettings): void {
|
setSettings(settings: IN8nUISettings): void {
|
||||||
|
|||||||
Reference in New Issue
Block a user