feat(editor): Show banner for non-production licenses (#6943)

https://linear.app/n8n/issue/PAY-692
This commit is contained in:
Iván Ovejero
2023-08-17 14:00:17 +02:00
committed by GitHub
parent d3f01270c7
commit 413570c49d
10 changed files with 33 additions and 20 deletions

View File

@@ -1,10 +1,10 @@
import type { IRestApiContext } from '@/Interface';
import { makeRestApiRequest } from '@/utils/apiUtils';
import type { Banners } from 'n8n-workflow';
import type { BannerName } from 'n8n-workflow';
export async function dismissBannerPermanently(
context: IRestApiContext,
data: { bannerName: Banners; dismissedBanners: string[] },
data: { bannerName: BannerName; dismissedBanners: string[] },
): Promise<void> {
return makeRestApiRequest(context, 'POST', '/owner/dismiss-banner', { banner: data.bannerName });
}