Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix: missing load more button (#10097)
ecmadao036930a10068
diff --git a/frontend/src/components/IssueV1/components/PagedIssueTableV1.vue b/frontend/src/components/IssueV1/components/PagedIssueTableV1.vueindex e8f7b7dc6c..31855d474c 100644--- a/frontend/src/components/IssueV1/components/PagedIssueTableV1.vue+++ b/frontend/src/components/IssueV1/components/PagedIssueTableV1.vue@@ -15,11 +15,11 @@<slotv-if="!state.loadingMore"name="more"- :has-more="state.hasMore"+ :has-more="!!state.paginationToken":fetch-next-page="fetchNextPage"><div- v-if="!hideLoadMore && pageSize > 0 && state.hasMore"+ v-if="!hideLoadMore && pageSize > 0 && state.paginationToken"class="flex items-center justify-center py-2 text-gray-400 text-sm hover:bg-gray-200 cursor-pointer"@click="fetchNextPage">@@ -46,7 +46,6 @@ type LocalState = {issueList: ComposedIssue[];paginationToken: string;loadingMore: boolean;- hasMore: boolean;};/**@@ -107,7 +106,6 @@ const state = reactive<LocalState>({issueList: [],paginationToken: "",loadingMore: false,- hasMore: true,});const sessionState = useSessionStorage<SessionState>(@@ -176,18 +174,13 @@ const fetchData = (refresh = false) => {state.issueList.push(...issues);}- if (issues.length < expectedRowCount) {- state.hasMore = false;- } else if (!isFirstFetch) {+ if (issues.length >= expectedRowCount && !isFirstFetch) {// If we didn't reach the end, memorize we've clicked the "load more" button.sessionState.value.page++;}sessionState.value.updatedTs = Date.now();state.paginationToken = nextPageToken;- if (!nextPageToken) {- state.hasMore = false;- }}).finally(() => {state.loading = false;@@ -204,7 +197,6 @@ const resetSession = () => {const refresh = () => {state.paginationToken = "";- state.hasMore = true;resetSession();fetchData(true);};diff --git a/frontend/src/components/PagedActivityTable.vue b/frontend/src/components/PagedActivityTable.vueindex 0c0764a3a7..cd491b1b7e 100644--- a/frontend/src/components/PagedActivityTable.vue+++ b/frontend/src/components/PagedActivityTable.vue@@ -11,11 +11,11 @@<slotv-if="!state.loading"name="more"- :has-more="state.hasMore"+ :has-more="!!state.paginationToken":fetch-next-page="fetchNextPage"><div- v-if="!hideLoadMore && pageSize > 0 && state.hasMore"+ v-if="!hideLoadMore && pageSize > 0 && state.paginationToken"class="flex items-center justify-center py-2 text-gray-400 text-sm hover:bg-gray-200 cursor-pointer"@click="fetchNextPage">@@ -36,7 +36,6 @@ type LocalState = {loading: boolean;auditLogList: LogEntity[];paginationToken: string;- hasMore: boolean;};/**@@ -86,7 +85,6 @@ const state = reactive<LocalState>({loading: false,auditLogList: [],paginationToken: "",- hasMore: true,});const sessionState = useSessionStorage<SessionState>(props.sessionKey, {@@ -142,9 +140,6 @@ const fetchData = async (refresh = false) => {sessionState.value.updatedTs = Date.now();state.paginationToken = nextPageToken;- if (!nextPageToken) {- state.hasMore = false;- }} catch (e) {console.error(e);} finally {@@ -161,7 +156,6 @@ const resetSession = () => {const refresh = () => {state.paginationToken = "";- state.hasMore = true;resetSession();fetchData(true);};