Skip to content

Commit

Permalink
update language and fix modal closing bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
John Tordoff committed Dec 12, 2024
1 parent fa4ae5e commit 28aadaf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,12 @@ export default class InstitutionalUsersList extends Component<InstitutionalUsers
}
}

@action
resetModalFields() {
this.messageText = '';
this.cc = false;
this.replyTo = false;
this.selectedUserId = null;
}

@action
Expand Down Expand Up @@ -300,9 +302,9 @@ export default class InstitutionalUsersList extends Component<InstitutionalUsers
});

await userMessage.save();
this.toast.success(this.intl.t('success.message_sent'));
this.toast.success(this.intl.t('institutions.dashboard.send_message_modal.message_sent_success'));
} catch (error) {
this.toast.error(this.intl.t('error.message_failed'));
this.toast.error(this.intl.t('institutions.dashboard.send_message_modal.message_sent_failed'));
} finally {
this.messageModalShown = false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,9 @@
<Button
@type='primary'
@disabled={{not this.messageText.trim}}
{{on 'click' (queue (perform this.sendMessage) dialog.close)}}
{{on 'click' (queue (perform this.sendMessage))}}
{{on 'click' this.toggleMessageModal}}

>
{{t 'institutions.dashboard.send_message_modal.send'}}
</Button>
Expand Down

0 comments on commit 28aadaf

Please sign in to comment.