From eff893b46f04b1c36578184a1c3ec977ffdc07d7 Mon Sep 17 00:00:00 2001 From: Ahmed Awan Date: Mon, 4 Mar 2024 10:48:34 -0600 Subject: [PATCH] fix `HistoryPanel` multi item drop text --- client/src/components/History/CurrentHistory/HistoryPanel.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/components/History/CurrentHistory/HistoryPanel.vue b/client/src/components/History/CurrentHistory/HistoryPanel.vue index 554321cf4254..bb4f90ac80d2 100644 --- a/client/src/components/History/CurrentHistory/HistoryPanel.vue +++ b/client/src/components/History/CurrentHistory/HistoryPanel.vue @@ -361,10 +361,10 @@ async function onDrop(evt: any) { } if (multiple && datasetCount > 0) { - Toast.info(`${datasetCount} datasets copied to history`); + Toast.info(`${datasetCount} dataset${datasetCount > 1 ? "s" : ""} copied to new history`); } if (multiple && collectionCount > 0) { - Toast.info(`${collectionCount} collections copied to history`); + Toast.info(`${collectionCount} collection${collectionCount > 1 ? "s" : ""} copied to new history`); } historyStore.loadHistoryById(props.history.id); } catch (error) {