mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
feat(core): Add workflow history initial setup (no-changelog) (#6852)
* feat: Add workflow history initial setup * fix: Add feature to missing controller
This commit is contained in:
parent
0511458d41
commit
63ffe67dad
|
@ -136,6 +136,10 @@ export class License {
|
||||||
return this.isFeatureEnabled(LICENSE_FEATURES.SOURCE_CONTROL);
|
return this.isFeatureEnabled(LICENSE_FEATURES.SOURCE_CONTROL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
isWorkflowHistoryLicensed() {
|
||||||
|
return this.isFeatureEnabled(LICENSE_FEATURES.WORKFLOW_HISTORY);
|
||||||
|
}
|
||||||
|
|
||||||
isAPIDisabled() {
|
isAPIDisabled() {
|
||||||
return this.isFeatureEnabled(LICENSE_FEATURES.API_DISABLED);
|
return this.isFeatureEnabled(LICENSE_FEATURES.API_DISABLED);
|
||||||
}
|
}
|
||||||
|
|
|
@ -75,6 +75,7 @@ export const LICENSE_FEATURES = {
|
||||||
VARIABLES: 'feat:variables',
|
VARIABLES: 'feat:variables',
|
||||||
SOURCE_CONTROL: 'feat:sourceControl',
|
SOURCE_CONTROL: 'feat:sourceControl',
|
||||||
API_DISABLED: 'feat:apiDisabled',
|
API_DISABLED: 'feat:apiDisabled',
|
||||||
|
WORKFLOW_HISTORY: 'feat:workflowHistory',
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
export const LICENSE_QUOTAS = {
|
export const LICENSE_QUOTAS = {
|
||||||
|
|
|
@ -61,6 +61,7 @@ export class E2EController {
|
||||||
[LICENSE_FEATURES.SOURCE_CONTROL]: false,
|
[LICENSE_FEATURES.SOURCE_CONTROL]: false,
|
||||||
[LICENSE_FEATURES.VARIABLES]: false,
|
[LICENSE_FEATURES.VARIABLES]: false,
|
||||||
[LICENSE_FEATURES.API_DISABLED]: false,
|
[LICENSE_FEATURES.API_DISABLED]: false,
|
||||||
|
[LICENSE_FEATURES.WORKFLOW_HISTORY]: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
import { License } from '@/License';
|
||||||
|
import Container from 'typedi';
|
||||||
|
|
||||||
|
export function isWorkflowHistoryLicensed() {
|
||||||
|
const license = Container.get(License);
|
||||||
|
return license.isWorkflowHistoryLicensed();
|
||||||
|
}
|
Loading…
Reference in a new issue