Skip to content

Fixed button and pagination on cloud storages page #5858

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 15, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ Tracks can be exported/imported to/from Datumaro and Sly Pointcloud formats (<ht
- \[Server API\] Ability to rename label to an existing name (<https://github.com/opencv/cvat/pull/5662>)
- Parsing skeleton sublabels containing spaces results in an error in dataset export (<https://github.com/opencv/cvat/pull/5794>)
- Missing CVAT_BASE_URL in docker-compose.yml (<https://github.com/opencv/cvat/pull/5792>)
- Create Cloud Storage button size and pagination (<https://github.com/opencv/cvat/pull/5858>)

### Security
- Fixed vulnerability with social authentication (<https://github.com/opencv/cvat/pull/5521>)
Expand Down
6 changes: 4 additions & 2 deletions cvat-core/src/server-proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2021,8 +2021,10 @@ async function getCloudStorages(filter = {}) {
let response = null;
try {
response = await Axios.get(`${backendAPI}/cloudstorages`, {
params: filter,
page_size: 12,
params: {
...filter,
page_size: 12,
},
});
} catch (errorData) {
throw generateError(errorData);
Expand Down
1 change: 0 additions & 1 deletion cvat-ui/src/components/cloud-storages-page/top-bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ export default function StoragesTopBar(props: Props): JSX.Element {
</div>
</div>
<Button
size='large'
className='cvat-attach-cloud-storage-button'
type='primary'
onClick={(): void => history.push('/cloudstorages/create')}
Expand Down