Commit b97abf7d authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'update-toast-position-set-status' into 'master'

Update toast position on set status

See merge request gitlab-org/gitlab!50886
parents b064618e 2e638110
......@@ -172,10 +172,7 @@ export default {
.catch(this.onUpdateFail);
},
onUpdateSuccess() {
this.$toast.show(s__('SetStatusModal|Status updated'), {
type: 'success',
position: 'top-center',
});
this.$toast.show(s__('SetStatusModal|Status updated'));
this.closeModal();
window.location.reload();
},
......
---
title: Update toast position on set status
merge_request: 50886
author:
type: fixed
......@@ -204,10 +204,7 @@ describe('SetStatusModalWrapper', () => {
findModal().vm.$emit('ok');
await wrapper.vm.$nextTick();
expect($toast.show).toHaveBeenCalledWith('Status updated', {
position: 'top-center',
type: 'success',
});
expect($toast.show).toHaveBeenCalledWith('Status updated');
});
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment