refactor(toast): rename delay to timeout

This commit is contained in:
Elian Doran
2025-12-07 00:06:42 +02:00
parent da17a63ef5
commit 7463570e76
7 changed files with 18 additions and 18 deletions

View File

@@ -78,7 +78,7 @@ ws.subscribeToMessages(async (message) => {
toastService.showPersistent(makeToast(message.taskId, t("import.in-progress", { progress: message.progressCount })));
} else if (message.type === "taskSucceeded") {
const toast = makeToast(message.taskId, t("import.successful"));
toast.delay = 5000;
toast.timeout = 5000;
toastService.showPersistent(toast);
@@ -100,7 +100,7 @@ ws.subscribeToMessages(async (message: WebSocketMessage) => {
toastService.showPersistent(makeToast(message.taskId, t("import.in-progress", { progress: message.progressCount })));
} else if (message.type === "taskSucceeded") {
const toast = makeToast(message.taskId, t("import.successful"));
toast.delay = 5000;
toast.timeout = 5000;
toastService.showPersistent(toast);