feat(cli): Enable community nodes based on npm availability (#3871)

*  Detect npm availability

* 📘 Expand interfaces

*  Adjust store

* 🎨 Replace button with warning
This commit is contained in:
Iván Ovejero
2022-08-11 16:39:55 +02:00
committed by GitHub
parent 620525ea85
commit 936264b3c6
8 changed files with 56 additions and 10 deletions

View File

@@ -719,6 +719,7 @@ export interface IN8nUISettings {
};
executionMode: string;
communityNodesEnabled: boolean;
isNpmAvailable: boolean;
publicApi: {
enabled: boolean;
latestVersion: number;
@@ -881,6 +882,7 @@ export interface IRootState {
sidebarMenuItems: IMenuItem[];
instanceId: string;
nodeMetadata: {[nodeName: string]: INodeMetadata};
isNpmAvailable: boolean;
}
export interface ICommunityPackageMap {