mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-16 19:00:38 +09:00
Add project workspace detail page
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
parent
15e0e2ece9
commit
bb1732dd11
4 changed files with 586 additions and 5 deletions
|
|
@ -165,3 +165,11 @@ export function projectRouteRef(project: { id: string; urlKey?: string | null; n
|
|||
export function projectUrl(project: { id: string; urlKey?: string | null; name?: string | null }): string {
|
||||
return `/projects/${projectRouteRef(project)}`;
|
||||
}
|
||||
|
||||
/** Build a project workspace URL scoped under its project. */
|
||||
export function projectWorkspaceUrl(
|
||||
project: { id: string; urlKey?: string | null; name?: string | null },
|
||||
workspaceId: string,
|
||||
): string {
|
||||
return `${projectUrl(project)}/workspaces/${workspaceId}`;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue