feat: show not found UI in app/connection flows
This commit is contained in:
@@ -22,6 +22,21 @@ export const APP_FLOWS_PATTERN = '/app/:appKey/flows';
|
||||
export const EDITOR = '/editor';
|
||||
export const CREATE_FLOW ='/editor/create';
|
||||
export const CREATE_FLOW_WITH_APP = (appKey: string) => `/editor/create?appKey=${appKey}`;
|
||||
export const CREATE_FLOW_WITH_APP_AND_CONNECTION = (appKey?: string, connectionId?: string) => {
|
||||
const params: { appKey?: string, connectionId?: string } = {};
|
||||
|
||||
if (appKey) {
|
||||
params.appKey = appKey;
|
||||
}
|
||||
|
||||
if (connectionId) {
|
||||
params.connectionId = connectionId;
|
||||
}
|
||||
|
||||
const searchParams = (new URLSearchParams(params)).toString();
|
||||
|
||||
return `/editor/create?${searchParams}`;
|
||||
}
|
||||
export const FLOW_EDITOR = (flowId: string): string => `/editor/${flowId}`;
|
||||
|
||||
export const FLOWS = '/flows';
|
||||
|
Reference in New Issue
Block a user