Skip to content

Commit 9a4cf61

Browse files
authored
fix(flat-components): add error tips to upload failed (#1683)
1 parent c04a9b4 commit 9a4cf61

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

packages/flat-i18n/locales/en.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -479,5 +479,6 @@
479479
"switch-to-next-color": "Switch to next color",
480480
"switch-to-previous-color": "Switch to previous color",
481481
"pencil-tool-draws-circle": "Pencil tool draws circle",
482-
"draw-circles-from-center": "Draw circles from center"
482+
"draw-circles-from-center": "Draw circles from center",
483+
"total-usage-is-full": "Total usage is full"
483484
}

packages/flat-i18n/locales/zh-CN.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -479,5 +479,6 @@
479479
"switch-to-next-color": "切换到下一个颜色",
480480
"switch-to-previous-color": "切换到上一个颜色",
481481
"pencil-tool-draws-circle": "画笔工具画直线",
482-
"draw-circles-from-center": "以当前点为圆心画圆"
482+
"draw-circles-from-center": "以当前点为圆心画圆",
483+
"total-usage-is-full": "云盘存储已达上限"
483484
}

packages/flat-stores/src/utils/upload-task-manager/upload-task.ts

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
RequestErrorCode,
99
isServerRequestError,
1010
} from "@netless/flat-server-api";
11+
import { errorTips } from "flat-components";
1112
import { isPPTX } from "../file";
1213

1314
export enum UploadStatusType {
@@ -124,6 +125,7 @@ export class UploadTask {
124125
} else {
125126
console.error(e);
126127
this.updateStatus(UploadStatusType.Failed);
128+
errorTips(e);
127129
}
128130
}
129131

0 commit comments

Comments
 (0)