Skip to content

Commit

Permalink
Fixed pagination on the Plugin Updates page
Browse files Browse the repository at this point in the history
  • Loading branch information
brian7704 committed Sep 21, 2024
1 parent be01a7d commit 8cdad47
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/_versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ export interface TsAppVersion {
export const versions: TsAppVersion = {
version: '0.0.0',
name: 'opentakserver-ui',
versionDate: '2024-09-20T13:16:21.241Z',
gitCommitHash: 'g1624544',
gitCommitDate: '2024-09-20T03:07:05.000Z',
versionLong: '0.0.0-g1624544',
gitTag: 'v1.3.0rc1',
versionDate: '2024-09-21T22:03:14.259Z',
gitCommitHash: 'gbe01a7d',
gitCommitDate: '2024-09-20T13:23:45.000Z',
versionLong: '0.0.0-gbe01a7d',
gitTag: 'v1.3.0rc2',
};
export default versions;
4 changes: 2 additions & 2 deletions src/pages/PluginUpdates.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export default function PluginUpdates() {

useEffect(() => {
get_plugins();
}, []);
}, [activePage]);

function upload_plugin(e:any) {
e.preventDefault();
Expand Down Expand Up @@ -208,7 +208,7 @@ export default function PluginUpdates() {
<Table stripedColor={computedColorScheme === 'light' ? 'gray.2' : 'dark.8'} highlightOnHoverColor={computedColorScheme === 'light' ? 'gray.4' : 'dark.6'} striped="odd" data={packages} highlightOnHover withTableBorder mb="md" />
</Table.ScrollContainer>
<Center><Pagination total={totalPages} value={activePage} onChange={setPage} withEdges /></Center>
<Modal opened={uploadPluginOpen} onClose={() => setUploadPluginOpen(false)} title="Upload new plugin">
<Modal opened={uploadPluginOpen} onClose={() => setUploadPluginOpen(false)} title="Upload Plugin">
{platforms}
{plugin_type}
<FileInput label="Plugin File" value={plugin} onChange={setPlugin} required accept="application/vnd.android.package-archive" />
Expand Down

0 comments on commit 8cdad47

Please sign in to comment.