ui: drop the 'download complete' success toast
Successful downloads no longer pop a 'downloadOk' toast across all the download sites (PopularRankList, RecommendedCard, FileDocBubble, ImageLightbox). The browser's native download UI already confirms the action, and the toast was redundant noise. Failure toasts and the spinner state remain so users still see errors.
This commit is contained in:
@@ -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