Skip to content

Commit

Permalink
fix(flat-components): button text error of RoomDetailFooter components (
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheerego7 authored Dec 22, 2021
1 parent 5339370 commit 7f6f5b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const RoomDetailFooter = observer<RoomDetailFooterProps>(function RoomDet
{t("copy-invitation")}
</Button>
<Button className="room-detail-footer-btn" type="primary" onClick={onJoinRoom}>
{room.roomStatus === RoomStatus.Idle ? t("begin") : t("join-room")}
{isCreator && room.roomStatus === RoomStatus.Idle ? t("begin") : t("join-room")}
</Button>
<InviteModal
visible={isShowInviteModal}
Expand Down
2 changes: 1 addition & 1 deletion packages/flat-i18n/locales/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
"cancel-room": "取消房间",
"modify-room": "修改房间",
"copy-invitation": "复制邀请",
"join-room": "进入房间",
"join-room": "加入房间",
"copy-success": "复制成功",
"copy-fail": "复制失败,请确保已允许相关权限",
"view-replay": "查看回放",
Expand Down

0 comments on commit 7f6f5b0

Please sign in to comment.