From 0dc2afb8261fc474bd46bcb1b57ab845fc1baf32 Mon Sep 17 00:00:00 2001 From: tusooa Date: Mon, 24 Jul 2023 19:13:37 -0400 Subject: Fix a bug where mentioning a user twice will not fill the mention into the textarea --- src/modules/postStatus.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/modules/postStatus.js') diff --git a/src/modules/postStatus.js b/src/modules/postStatus.js index 638c1fb2..d3bea137 100644 --- a/src/modules/postStatus.js +++ b/src/modules/postStatus.js @@ -10,6 +10,9 @@ const postStatus = { }, closePostStatusModal (state) { state.modalActivated = false + }, + resetPostStatusModal (state) { + state.params = null } }, actions: { @@ -18,6 +21,9 @@ const postStatus = { }, closePostStatusModal ({ commit }) { commit('closePostStatusModal') + }, + resetPostStatusModal ({ commit }) { + commit('resetPostStatusModal') } } } -- cgit v1.2.3-70-g09d2