feat(editor): Show banner for non-production licenses (#6943)
https://linear.app/n8n/issue/PAY-692
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user