Skip to content

Commit

Permalink
fix(editor): Make workflow history button available only for dev buil…
Browse files Browse the repository at this point in the history
…ds (#7392)

Github issue / Community forum post (link here to close automatically):

---------

Co-authored-by: Csaba Tuncsik <csaba.tuncsik@gmail.com>
  • Loading branch information
krynble and cstuncsik authored Oct 10, 2023
1 parent 5c70704 commit 7ed466d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 } } {
Expand Down
3 changes: 3 additions & 0 deletions packages/editor-ui/src/stores/settings.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7ed466d

Please sign in to comment.