Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/ROUTES.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1850,10 +1850,14 @@ const ROUTES = {
},
WORKSPACE_OWNER_CHANGE_SUCCESS: {
route: 'workspaces/:policyID/change-owner/:accountID/success',

// eslint-disable-next-line no-restricted-syntax -- Legacy route generation
getRoute: (policyID: string, accountID: number, backTo?: string) => getUrlWithBackToParam(`workspaces/${policyID}/change-owner/${accountID}/success` as const, backTo),
},
WORKSPACE_OWNER_CHANGE_ERROR: {
route: 'workspaces/:policyID/change-owner/:accountID/failure',

// eslint-disable-next-line no-restricted-syntax -- Legacy route generation
getRoute: (policyID: string, accountID: number, backTo?: string) => getUrlWithBackToParam(`workspaces/${policyID}/change-owner/${accountID}/failure` as const, backTo),
},
WORKSPACE_OWNER_CHANGE_CHECK: {
Expand All @@ -1862,6 +1866,8 @@ const ROUTES = {
if (!policyID) {
Log.warn('Invalid policyID is used to build the WORKSPACE_OWNER_CHANGE_CHECK route');
}

// eslint-disable-next-line no-restricted-syntax -- Legacy route generation
return getUrlWithBackToParam(`workspaces/${policyID}/change-owner/${accountID}/${error as string}` as const, backTo);
},
},
Expand Down
Loading