Commit a8bef0fa authored by 2458773093's avatar 2458773093

reset compose state after success

parent e5a05a92
...@@ -92,6 +92,7 @@ function statusToTextMentions(state, status) { ...@@ -92,6 +92,7 @@ function statusToTextMentions(state, status) {
function clearAll(state) { function clearAll(state) {
return state.withMutations(map => { return state.withMutations(map => {
map.set('id', null);
map.set('text', ''); map.set('text', '');
map.set('spoiler', false); map.set('spoiler', false);
map.set('spoiler_text', ''); map.set('spoiler_text', '');
......
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