mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-05-17 02:37:28 +01:00
Fixed localization error
This commit is contained in:
@@ -144,14 +144,16 @@ const pollDataTransferJobOperation = async (
|
|||||||
if (status === "Cancelled") {
|
if (status === "Cancelled") {
|
||||||
removeFromPolling(jobName);
|
removeFromPolling(jobName);
|
||||||
clearMessage && clearMessage();
|
clearMessage && clearMessage();
|
||||||
const cancelMessage = t(Keys.containerCopy.dataTransfers.polling.cancelConsoleMessage);
|
const cancelMessage = t(Keys.containerCopy.dataTransfers.polling.cancelConsoleMessage, { jobName: jobName });
|
||||||
NotificationConsoleUtils.logConsoleError(cancelMessage);
|
NotificationConsoleUtils.logConsoleError(cancelMessage);
|
||||||
throw new AbortError(cancelMessage);
|
throw new AbortError(cancelMessage);
|
||||||
}
|
}
|
||||||
if (status === "Paused") {
|
if (status === "Paused") {
|
||||||
removeFromPolling(jobName);
|
removeFromPolling(jobName);
|
||||||
clearMessage && clearMessage();
|
clearMessage && clearMessage();
|
||||||
NotificationConsoleUtils.logConsoleInfo(t(Keys.containerCopy.dataTransfers.polling.pauseConsoleMessage));
|
NotificationConsoleUtils.logConsoleInfo(
|
||||||
|
t(Keys.containerCopy.dataTransfers.polling.pauseConsoleMessage, { jobName: jobName }),
|
||||||
|
);
|
||||||
return body;
|
return body;
|
||||||
}
|
}
|
||||||
if (status === "Failed" || status === "Faulted") {
|
if (status === "Failed" || status === "Faulted") {
|
||||||
|
|||||||
Reference in New Issue
Block a user