Skip to content

Commit

Permalink
Hide bottom pagination if logs loading in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
pijng committed Jun 6, 2024
1 parent caba44d commit 0797a25
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/api/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ info:
license:
name: Apache 2.0
url: http://www.apache.org/licenses/LICENSE-2.0.html
version: 1.11.0
version: 1.11.1
externalDocs:
description: Find out more about spec
url: 'https://moonlogs.pages.dev'
Expand Down
8 changes: 7 additions & 1 deletion web/src/pages/logs-list/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,13 @@ export const LogsListPage = () => {
});
});

Pagination(logModel.$pages, logModel.$currentPage, logModel.events.pageChanged);
h("div", () => {
spec({
visible: $isLoadingLogs.map((l) => !l),
});

Pagination(logModel.$pages, logModel.$currentPage, logModel.events.pageChanged);
});
});
});
});
Expand Down

0 comments on commit 0797a25

Please sign in to comment.