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