mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-09 22:24:05 -08: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:
parent
5c70704f88
commit
7ed466db7f
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue