terry-staging #11
@@ -108,7 +108,6 @@ function PopularRankRow({
|
|||||||
r.downloadAttachmentId,
|
r.downloadAttachmentId,
|
||||||
r.title,
|
r.title,
|
||||||
);
|
);
|
||||||
showToast(t("downloadOk"));
|
|
||||||
} catch {
|
} catch {
|
||||||
showToast(t("downloadFail"), "error");
|
showToast(t("downloadFail"), "error");
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
@@ -85,7 +85,6 @@ export function RecommendedCard({
|
|||||||
} else {
|
} else {
|
||||||
await downloadFile(dl, displayTitle);
|
await downloadFile(dl, displayTitle);
|
||||||
}
|
}
|
||||||
showToast(t("downloadOk"));
|
|
||||||
} catch {
|
} catch {
|
||||||
showToast(t("downloadFail"), "error");
|
showToast(t("downloadFail"), "error");
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ function AttachmentRow({ postId, att }: { postId: string; att: Attachment }) {
|
|||||||
setIsDownloading(true);
|
setIsDownloading(true);
|
||||||
try {
|
try {
|
||||||
await downloadAttachment(postId, att.id, displayFilename);
|
await downloadAttachment(postId, att.id, displayFilename);
|
||||||
showToast(t("downloadOk"));
|
|
||||||
} catch {
|
} catch {
|
||||||
showToast(t("downloadFail"), "error");
|
showToast(t("downloadFail"), "error");
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
@@ -94,7 +94,6 @@ function LightboxDownloadButton({
|
|||||||
setIsDownloading(true);
|
setIsDownloading(true);
|
||||||
try {
|
try {
|
||||||
await downloadAttachment(postId, attachment.id, attachment.filename);
|
await downloadAttachment(postId, attachment.id, attachment.filename);
|
||||||
showToast(t("downloadOk"));
|
|
||||||
} catch {
|
} catch {
|
||||||
showToast(t("downloadFail"), "error");
|
showToast(t("downloadFail"), "error");
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
Reference in New Issue
Block a user