From 1b5754c86fd6404976dda72d90f7fcc0c7caf30c Mon Sep 17 00:00:00 2001 From: Angel Fernando Quiroz Campos Date: Mon, 10 Jun 2024 19:48:07 -0500 Subject: [PATCH] Message: Allow to reset search - refs BT#21705 --- assets/vue/views/message/MessageList.vue | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/assets/vue/views/message/MessageList.vue b/assets/vue/views/message/MessageList.vue index 6cb4cd407c8..661eb1cd763 100644 --- a/assets/vue/views/message/MessageList.vue +++ b/assets/vue/views/message/MessageList.vue @@ -109,6 +109,11 @@ type="primary" is-submit /> + @@ -501,4 +506,16 @@ function onSearch() { loadMessages() } + +function onResetSearch() { + searchText.value = "" + + fetchPayload = { + "order[sendDate]": "desc", + itemsPerPage: initialRowsPerPage, + page: 1, + } + + loadMessages() +}