mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-10 20:02:26 +00:00
add niceid to CreateShareLinkForm
This commit is contained in:
@@ -98,6 +98,7 @@ export default function CreateShareLinkForm({
|
|||||||
{
|
{
|
||||||
resourceId: number;
|
resourceId: number;
|
||||||
name: string;
|
name: string;
|
||||||
|
niceId: string;
|
||||||
resourceUrl: string;
|
resourceUrl: string;
|
||||||
}[]
|
}[]
|
||||||
>([]);
|
>([]);
|
||||||
@@ -160,6 +161,7 @@ export default function CreateShareLinkForm({
|
|||||||
.map((r) => ({
|
.map((r) => ({
|
||||||
resourceId: r.resourceId,
|
resourceId: r.resourceId,
|
||||||
name: r.name,
|
name: r.name,
|
||||||
|
niceId: r.niceId,
|
||||||
resourceUrl: `${r.ssl ? "https://" : "http://"}${toUnicode(r.fullDomain || "")}/`
|
resourceUrl: `${r.ssl ? "https://" : "http://"}${toUnicode(r.fullDomain || "")}/`
|
||||||
}))
|
}))
|
||||||
);
|
);
|
||||||
@@ -233,6 +235,7 @@ export default function CreateShareLinkForm({
|
|||||||
accessTokenId: token.accessTokenId,
|
accessTokenId: token.accessTokenId,
|
||||||
resourceId: token.resourceId,
|
resourceId: token.resourceId,
|
||||||
resourceName: values.resourceName,
|
resourceName: values.resourceName,
|
||||||
|
resourceNiceId: resource ? resource.niceId : "",
|
||||||
title: token.title,
|
title: token.title,
|
||||||
createdAt: token.createdAt,
|
createdAt: token.createdAt,
|
||||||
expiresAt: token.expiresAt
|
expiresAt: token.expiresAt
|
||||||
|
|||||||
Reference in New Issue
Block a user