mirror of
https://github.com/docmost/docmost.git
synced 2025-11-16 02:11:10 +10:00
WIP
This commit is contained in:
@ -98,7 +98,7 @@ export default function EmbedView(props: NodeViewProps) {
|
|||||||
|
|
||||||
<Text component="span" size="lg" c="dimmed">
|
<Text component="span" size="lg" c="dimmed">
|
||||||
{t("Embed {{provider}}", {
|
{t("Embed {{provider}}", {
|
||||||
provider: getEmbedProviderById(provider).name,
|
provider: getEmbedProviderById(provider)?.name,
|
||||||
})}
|
})}
|
||||||
</Text>
|
</Text>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -92,6 +92,8 @@ function ImportFormatSelection({ spaceId, onClose }: ImportFormatSelection) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
onClose();
|
||||||
|
|
||||||
notifications.show({
|
notifications.show({
|
||||||
id: "import",
|
id: "import",
|
||||||
message: t("Uploading import file"),
|
message: t("Uploading import file"),
|
||||||
@ -101,7 +103,7 @@ function ImportFormatSelection({ spaceId, onClose }: ImportFormatSelection) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const importTask = await importZip(selectedFile, spaceId, source);
|
const importTask = await importZip(selectedFile, spaceId, source);
|
||||||
notifications.show({
|
notifications.update({
|
||||||
id: "import",
|
id: "import",
|
||||||
title: t("Importing pages"),
|
title: t("Importing pages"),
|
||||||
message: t("Page import is in progress."),
|
message: t("Page import is in progress."),
|
||||||
|
|||||||
Reference in New Issue
Block a user