File tree Expand file tree Collapse file tree 4 files changed +11
-2
lines changed
flat-components/src/components/HomePage/RoomList/RoomListItem Expand file tree Collapse file tree 4 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 87
87
padding : 4px 8px ;
88
88
border : 0 ;
89
89
border-radius : 4px ;
90
+ outline : none ;
90
91
background-color : transparent ;
91
92
transition : background- color 0.2s ;
92
93
cursor : pointer ;
Original file line number Diff line number Diff line change 655
655
"minutes" : " {{minutes}} minutes" ,
656
656
"room-not-begin-title-post" : " before it starts" ,
657
657
"room-has-been-added" : " has been added to rooms list" ,
658
- "the-room-is-not-started-yet" : " Room not started, accessible 5 minutes before class starts" ,
658
+ "the-room-is-not-started-yet" : " Room not started, accessible {{minutes}} minutes before class starts" ,
659
659
"will-start-after-minutes" : " In {{minutes}} minutes" ,
660
660
"time-limit-tip" : " This {{roomType}} room has a limit of {{minutes}} minutes" ,
661
661
"vip-level" : {
Original file line number Diff line number Diff line change 655
655
"minutes" : " {{minutes}}分钟" ,
656
656
"room-not-begin-title-post" : " 可进入" ,
657
657
"room-has-been-added" : " 已加入房间列表" ,
658
- "the-room-is-not-started-yet" : " 房间未开始,开课前 5 分钟可进入" ,
658
+ "the-room-is-not-started-yet" : " 房间未开始,开课前 {{minutes}} 分钟可进入" ,
659
659
"will-start-after-minutes" : " {{minutes}} 分钟后开始" ,
660
660
"time-limit-tip" : " 你已加入{{roomType}} {{minutes}} 分钟限时房间" ,
661
661
"vip-level" : {
Original file line number Diff line number Diff line change @@ -72,6 +72,14 @@ export const joinRoomHandler = async (
72
72
return ;
73
73
}
74
74
75
+ // show room not started with custom {joinEarly} minutes
76
+ if ( e . errorCode === RequestErrorCode . RoomNotBegin ) {
77
+ const minutes = globalStore . serverRegionConfig ?. server . joinEarly || 5 ;
78
+ void message . info ( FlatI18n . t ( "the-room-is-not-started-yet" , { minutes } ) ) ;
79
+ pushHistory ( RouteNameType . HomePage ) ;
80
+ return ;
81
+ }
82
+
75
83
pushHistory ( RouteNameType . HomePage ) ;
76
84
errorTips ( e ) ;
77
85
}
You can’t perform that action at this time.
0 commit comments