Commit d002698 1 parent f2d8044 commit d002698 Copy full SHA for d002698
File tree 1 file changed +16
-16
lines changed
1 file changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -165,28 +165,28 @@ export class MobileMailActionBar implements Component<MobileMailActionBarAttrs>
165
165
click :
166
166
replyAllAction != null
167
167
? ( e , dom ) => {
168
- const dropdown = new Dropdown ( ( ) => {
169
- const buttons : DropdownButtonAttrs [ ] = [ ]
170
- buttons . push ( {
171
- label : "replyAll_action" ,
172
- icon : Icons . ReplyAll ,
173
- click : replyAllAction ,
174
- } )
175
-
176
- buttons . push ( {
177
- label : "reply_action" ,
178
- icon : Icons . Reply ,
179
- click : replyAction ,
180
- } )
181
- return buttons
182
- } , this . dropdownWidth ( ) ?? 300 )
168
+ const dropdown = new Dropdown (
169
+ ( ) => [
170
+ {
171
+ label : "replyAll_action" ,
172
+ icon : Icons . ReplyAll ,
173
+ click : replyAllAction ,
174
+ } ,
175
+ {
176
+ label : "reply_action" ,
177
+ icon : Icons . Reply ,
178
+ click : replyAction ,
179
+ } ,
180
+ ] ,
181
+ this . dropdownWidth ( ) ?? 300 ,
182
+ )
183
183
184
184
const domRect = this . dom ?. getBoundingClientRect ( ) ?? dom . getBoundingClientRect ( )
185
185
dropdown . setOrigin ( domRect )
186
186
modal . displayUnique ( dropdown , true )
187
187
}
188
188
: replyAction ,
189
- icon : replyAllAction = = null ? Icons . ReplyAll : Icons . Reply ,
189
+ icon : replyAllAction ! = null ? Icons . ReplyAll : Icons . Reply ,
190
190
} )
191
191
)
192
192
}
You can’t perform that action at this time.
0 commit comments