mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 10:42:45 +08:00
FIX: close d-menu before action in topic menu (#26956)
Prior to this fix we were making the action and then closing the d-menu which in this case would be a modal and close the modal opened by the action.
This commit is contained in:
parent
4fad0b33eb
commit
cb9817acb6
|
@ -20,15 +20,15 @@ export default class TopicAdminMenu extends Component {
|
|||
}
|
||||
|
||||
@action
|
||||
onButtonAction(buttonAction) {
|
||||
async onButtonAction(buttonAction) {
|
||||
await this.dMenu.close();
|
||||
this.args[buttonAction]?.();
|
||||
this.dMenu.close();
|
||||
}
|
||||
|
||||
@action
|
||||
onExtraButtonAction(buttonAction) {
|
||||
async onExtraButtonAction(buttonAction) {
|
||||
await this.dMenu.close();
|
||||
buttonAction?.();
|
||||
this.dMenu.close();
|
||||
}
|
||||
|
||||
get extraButtons() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user