Skip to content

Commit

Permalink
Merge branch 'fix/history-pagination-page' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Aldemylla committed Oct 23, 2023
2 parents d232859 + ff36c69 commit cf352c2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/views/chats/ClosedChats/RoomsTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@
{{ $t('without_results') }}
</p>

<rooms-table-pages-loading v-if="isPagesLoading" />
<section v-else class="closed-chats__rooms-table__pages">
<rooms-table-pages-loading v-show="isPagesLoading" />
<section v-show="!isPagesLoading" class="closed-chats__rooms-table__pages">
<p class="closed-chats__rooms-table__pages__count">
{{ tablePagination }}
</p>
Expand Down Expand Up @@ -236,7 +236,7 @@ export default {
},
methods: {
async getHistoryRooms(paginate) {
async getHistoryRooms({ paginate = false }) {
this.isTableLoading = true;
this.isPagesLoading = true;
Expand Down Expand Up @@ -320,7 +320,7 @@ export default {
watch: {
roomsCurrentPage() {
this.getHistoryRooms(true);
this.getHistoryRooms({ paginate: true });
},
filterContact() {
const TIME_TO_WAIT_TYPING = 800;
Expand Down

0 comments on commit cf352c2

Please sign in to comment.