Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(flat-components): add error tips to upload failed #1683

Merged
merged 1 commit into from
Sep 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/flat-i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -479,5 +479,6 @@
"switch-to-next-color": "Switch to next color",
"switch-to-previous-color": "Switch to previous color",
"pencil-tool-draws-circle": "Pencil tool draws circle",
"draw-circles-from-center": "Draw circles from center"
"draw-circles-from-center": "Draw circles from center",
"total-usage-is-full": "Total usage is full"
}
3 changes: 2 additions & 1 deletion packages/flat-i18n/locales/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -479,5 +479,6 @@
"switch-to-next-color": "切换到下一个颜色",
"switch-to-previous-color": "切换到上一个颜色",
"pencil-tool-draws-circle": "画笔工具画直线",
"draw-circles-from-center": "以当前点为圆心画圆"
"draw-circles-from-center": "以当前点为圆心画圆",
"total-usage-is-full": "云盘存储已达上限"
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
RequestErrorCode,
isServerRequestError,
} from "@netless/flat-server-api";
import { errorTips } from "flat-components";
import { isPPTX } from "../file";

export enum UploadStatusType {
Expand Down Expand Up @@ -124,6 +125,7 @@ export class UploadTask {
} else {
console.error(e);
this.updateStatus(UploadStatusType.Failed);
errorTips(e);
}
}

Expand Down