File tree Expand file tree Collapse file tree 3 files changed +20
-5
lines changed Expand file tree Collapse file tree 3 files changed +20
-5
lines changed Original file line number Diff line number Diff line change @@ -42,11 +42,14 @@ export default class DialogSection<CustomAttrs extends IDialogStreamAttrs = IDia
42
42
< div className = "DialogSection-header" >
43
43
< Avatar user = { recipient } />
44
44
< div className = "DialogSection-header-info" >
45
- { ( recipient && (
46
- < Link href = { app . route . user ( recipient ! ) } >
47
- < h2 > { username ( recipient ) } </ h2 >
48
- </ Link >
49
- ) ) || < h2 > { username ( recipient ) } </ h2 > }
45
+ < h2 className = "DialogSection-header-info-title" >
46
+ { ( recipient && < Link href = { app . route . user ( recipient ! ) } > { username ( recipient ) } </ Link > ) || username ( recipient ) }
47
+ { recipient && recipient . canSendAnyMessage ( ) ? null : (
48
+ < span className = "DialogSection-header-info-helperText" >
49
+ { app . translator . trans ( 'flarum-messages.forum.dialog_section.cannot_reply_text' ) }
50
+ </ span >
51
+ ) }
52
+ </ h2 >
50
53
< div className = "badges" > { listItems ( recipient ?. badges ( ) . toArray ( ) || [ ] ) } </ div >
51
54
</ div >
52
55
< div className = "DialogSection-header-actions" > { this . actionItems ( ) . toArray ( ) } </ div >
Original file line number Diff line number Diff line change 232
232
gap : 6px ;
233
233
}
234
234
235
+ .DialogSection-header-info-title {
236
+ display : flex ;
237
+ flex-direction : column ;
238
+ }
239
+
240
+ .DialogSection-header-info-helperText {
241
+ font-size : 0.8rem ;
242
+ font-weight : normal ;
243
+ color : var (--control-color );
244
+ }
245
+
235
246
.DialogSection-back {
236
247
display : flex ;
237
248
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ flarum-messages:
22
22
23
23
dialog_section :
24
24
back_label : Go back
25
+ cannot_reply_text : This user cannot reply
25
26
controls :
26
27
details_button : Details
27
28
controls_toggle_label : Dialog control actions
You can’t perform that action at this time.
0 commit comments