-
Notifications
You must be signed in to change notification settings - Fork 260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement undo for send now action in outbox message list #6332
Conversation
src/store/outbox/actions.js
Outdated
@@ -105,4 +108,33 @@ export default { | |||
|
|||
commit('deleteMessage', { id }) | |||
}, | |||
|
|||
async sendMessageWithUndo({ getters, dispatch }, { message }) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: the action is async but can't be awaited. You could return a new promise at the end that calls the resolve
callback when everything is done
97e8758
to
bd8c3c5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
/backport to stable1.12 |
@st3iny is there anything missing? |
This is done. I forgot to change the label. |
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
61dadcf
to
d778791
Compare
Fix #6248
The action "Send now" in the action menu of the outbox message list now works exactly the same way as the "Send now" button of the composer modal.