mirror of
https://github.com/docmost/docmost.git
synced 2025-11-19 00:11:12 +10:00
update copy
This commit is contained in:
@ -377,7 +377,8 @@
|
|||||||
"Allow search engines to index page": "Allow search engines to index page",
|
"Allow search engines to index page": "Allow search engines to index page",
|
||||||
"Open page": "Open page",
|
"Open page": "Open page",
|
||||||
"Page": "Page",
|
"Page": "Page",
|
||||||
"Revoke public link": "Revoke public link",
|
"Delete public share link": "Delete public share link",
|
||||||
"Are you sure you want to revoke this public link?": "Are you sure you want to revoke this public link?",
|
"Delete share": "Delete share",
|
||||||
|
"Are you sure you want to delete this shared link?": "Are you sure you want to delete this shared link?",
|
||||||
"Publicly shared pages from spaces you are a member of will appear here": "Publicly shared pages from spaces you are a member of will appear here"
|
"Publicly shared pages from spaces you are a member of will appear here": "Publicly shared pages from spaces you are a member of will appear here"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -46,22 +46,22 @@ export default function ShareActionMenu({ share }: Props) {
|
|||||||
clipboard.copy(shareLink);
|
clipboard.copy(shareLink);
|
||||||
notifications.show({ message: t("Link copied") });
|
notifications.show({ message: t("Link copied") });
|
||||||
};
|
};
|
||||||
const onRevoke = async () => {
|
const onDelete = async () => {
|
||||||
deleteShareMutation.mutateAsync(share.key);
|
deleteShareMutation.mutateAsync(share.key);
|
||||||
};
|
};
|
||||||
|
|
||||||
const openRevokeModal = () =>
|
const openDeleteModal = () =>
|
||||||
modals.openConfirmModal({
|
modals.openConfirmModal({
|
||||||
title: t("Revoke public link"),
|
title: t("Delete public share link"),
|
||||||
children: (
|
children: (
|
||||||
<Text size="sm">
|
<Text size="sm">
|
||||||
{t("Are you sure you want to revoke this public link?")}
|
{t("Are you sure you want to delete this shared link?")}
|
||||||
</Text>
|
</Text>
|
||||||
),
|
),
|
||||||
centered: true,
|
centered: true,
|
||||||
labels: { confirm: t("Revoke"), cancel: t("Don't") },
|
labels: { confirm: t("Delete"), cancel: t("Don't") },
|
||||||
confirmProps: { color: "red" },
|
confirmProps: { color: "red" },
|
||||||
onConfirm: onRevoke,
|
onConfirm: onDelete,
|
||||||
});
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@ -93,11 +93,11 @@ export default function ShareActionMenu({ share }: Props) {
|
|||||||
</Menu.Item>
|
</Menu.Item>
|
||||||
<Menu.Item
|
<Menu.Item
|
||||||
c="red"
|
c="red"
|
||||||
onClick={openRevokeModal}
|
onClick={openDeleteModal}
|
||||||
leftSection={<IconTrash size={16} />}
|
leftSection={<IconTrash size={16} />}
|
||||||
disabled={share.space?.userRole === "reader"}
|
disabled={share.space?.userRole === "reader"}
|
||||||
>
|
>
|
||||||
{t("Revoke")}
|
{t("Delete share")}
|
||||||
</Menu.Item>
|
</Menu.Item>
|
||||||
</Menu.Dropdown>
|
</Menu.Dropdown>
|
||||||
</Menu>
|
</Menu>
|
||||||
|
|||||||
Reference in New Issue
Block a user