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

Update toast position on set status

parent af122438
...@@ -172,10 +172,7 @@ export default { ...@@ -172,10 +172,7 @@ export default {
.catch(this.onUpdateFail); .catch(this.onUpdateFail);
}, },
onUpdateSuccess() { onUpdateSuccess() {
this.$toast.show(s__('SetStatusModal|Status updated'), { this.$toast.show(s__('SetStatusModal|Status updated'));
type: 'success',
position: 'top-center',
});
this.closeModal(); this.closeModal();
window.location.reload(); window.location.reload();
}, },
......
---
title: Update toast position on set status
merge_request: 50886
author:
type: fixed
...@@ -204,10 +204,7 @@ describe('SetStatusModalWrapper', () => { ...@@ -204,10 +204,7 @@ describe('SetStatusModalWrapper', () => {
findModal().vm.$emit('ok'); findModal().vm.$emit('ok');
await wrapper.vm.$nextTick(); await wrapper.vm.$nextTick();
expect($toast.show).toHaveBeenCalledWith('Status updated', { expect($toast.show).toHaveBeenCalledWith('Status updated');
position: 'top-center',
type: 'success',
});
}); });
}); });
......
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