Skip to content

Commit d002698

Browse files
committed
Fix reply all icon used for reply action in MobileMailActionBar
Close #8704
1 parent f2d8044 commit d002698

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

src/mail-app/mail/view/MobileMailActionBar.ts

+16-16
Original file line numberDiff line numberDiff line change
@@ -165,28 +165,28 @@ export class MobileMailActionBar implements Component<MobileMailActionBarAttrs>
165165
click:
166166
replyAllAction != null
167167
? (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+
)
183183

184184
const domRect = this.dom?.getBoundingClientRect() ?? dom.getBoundingClientRect()
185185
dropdown.setOrigin(domRect)
186186
modal.displayUnique(dropdown, true)
187187
}
188188
: replyAction,
189-
icon: replyAllAction == null ? Icons.ReplyAll : Icons.Reply,
189+
icon: replyAllAction != null ? Icons.ReplyAll : Icons.Reply,
190190
})
191191
)
192192
}

0 commit comments

Comments
 (0)