Skip to content

Commit

Permalink
fix: pagination disable on limit query (#3037)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjp232004 committed Mar 18, 2024
1 parent d686481 commit 5300cb1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/ui-testing/cypress/e2e/tests/logs_queries.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ describe("Logs testcases", () => {
cy.get('[data-test="logs-search-bar-query-editor"] > .monaco-editor')
.click() // Click on the editor to focus
.type(" WHERE match_all_indexed_ignore_case('provide_credentials')");
cy.get("[data-test='logs-search-bar-refresh-btn']", {
timeout: 2000,
}).click({ force: true });
cy.get('[data-test="logs-search-result-records-per-page"]').click();
cy.get(".q-virtual-scroll__content:last").click();

Expand Down
2 changes: 2 additions & 0 deletions web/src/plugins/logs/SearchResult.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</div>
<div class="col-6 text-right q-pr-md q-gutter-xs pagination-block">
<q-pagination
v-if="searchObj.meta.resultGrid.showPagination"
:disable="searchObj.loading == true"
v-model="pageNumberInput"
:key="
Expand Down Expand Up @@ -61,6 +62,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
data-test="logs-search-result-pagination"
/>
<q-select
v-if="searchObj.meta.resultGrid.showPagination"
data-test="logs-search-result-records-per-page"
v-model="searchObj.meta.resultGrid.rowsPerPage"
:options="rowsPerPageOptions"
Expand Down

0 comments on commit 5300cb1

Please sign in to comment.