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:
Omar Ajoue 2023-10-10 12:15:18 +02:00 committed by GitHub
parent 5c70704f88
commit 7ed466db7f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View file

@ -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 } } {

View file

@ -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 {