Commit 2e638110 authored by Jarek Ostrowski's avatar Jarek Ostrowski

Update toast position on set status

parent af122438
......@@ -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