mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Fixed member product modal not closing
no refs - Added missing close handling for member product modal
This commit is contained in:
parent
bc25dbdefa
commit
176ed4a260
1 changed files with 10 additions and 0 deletions
|
@ -60,6 +60,12 @@ export default class ModalMemberProduct extends ModalComponent {
|
|||
return this.addProduct.perform();
|
||||
}
|
||||
|
||||
@action
|
||||
close(event) {
|
||||
event?.preventDefault?.();
|
||||
this.closeModal();
|
||||
}
|
||||
|
||||
@task({drop: true})
|
||||
*addProduct() {
|
||||
let url = this.ghostPaths.url.api(`members/${this.member.get('id')}`);
|
||||
|
@ -93,6 +99,10 @@ export default class ModalMemberProduct extends ModalComponent {
|
|||
actions = {
|
||||
confirm() {
|
||||
this.confirmAction(...arguments);
|
||||
},
|
||||
// needed because ModalBase uses .send() for keyboard events
|
||||
closeModal() {
|
||||
this.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue