Skip to content

Commit

Permalink
Message: Allow to reset search - refs BT#21705
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFQC committed Jun 11, 2024
1 parent 41275ec commit 1b5754c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions assets/vue/views/message/MessageList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@
type="primary"
is-submit
/>
<BaseButton
icon="close"
type="primary"
@click="onResetSearch"
/>
</InputGroup>
</form>
</template>
Expand Down Expand Up @@ -501,4 +506,16 @@ function onSearch() {
loadMessages()
}
function onResetSearch() {
searchText.value = ""
fetchPayload = {
"order[sendDate]": "desc",
itemsPerPage: initialRowsPerPage,
page: 1,
}
loadMessages()
}
</script>

0 comments on commit 1b5754c

Please sign in to comment.