open side panel on click

This commit is contained in:
miloschwartz
2026-07-01 14:30:43 -04:00
parent 5a1d5cb66e
commit 0871a211ec
14 changed files with 343 additions and 28 deletions

View File

@@ -0,0 +1,17 @@
import type { LauncherResource } from "@server/routers/launcher/types";
export function getLauncherResourceAdminHref(
orgId: string,
resource: LauncherResource
): string {
if (resource.resourceType === "public") {
return `/${orgId}/settings/resources/public/${resource.niceId}/general`;
}
const qs = new URLSearchParams({ query: resource.niceId });
if (resource.site?.siteId != null) {
qs.set("siteId", String(resource.site.siteId));
}
return `/${orgId}/settings/resources/private?${qs.toString()}`;
}