Preserve the order of the label attributes in the object item details. (#3945)

* preserve the order of the label attributes in the object item details

* updated changelog, cvat-ui v++
main
Andrey Zhavoronkov 4 years ago committed by GitHub
parent c6ed6d1266
commit 4632128228
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -28,6 +28,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed ### Fixed
- Fixed Interaction handler keyboard handlers (<https://github.com/openvinotoolkit/cvat/pull/3881>) - Fixed Interaction handler keyboard handlers (<https://github.com/openvinotoolkit/cvat/pull/3881>)
- Points of invisible shapes are visible in autobordering (<https://github.com/openvinotoolkit/cvat/pull/3931>) - Points of invisible shapes are visible in autobordering (<https://github.com/openvinotoolkit/cvat/pull/3931>)
- Order of the label attributes in the object item details(<https://github.com/openvinotoolkit/cvat/pull/3945>)
### Security ### Security
- TDB - TDB

@ -1,12 +1,12 @@
{ {
"name": "cvat-ui", "name": "cvat-ui",
"version": "1.27.0", "version": "1.27.1",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "cvat-ui", "name": "cvat-ui",
"version": "1.27.0", "version": "1.27.1",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@ant-design/icons": "^4.6.3", "@ant-design/icons": "^4.6.3",

@ -1,6 +1,6 @@
{ {
"name": "cvat-ui", "name": "cvat-ui",
"version": "1.27.0", "version": "1.27.1",
"description": "CVAT single-page application", "description": "CVAT single-page application",
"main": "src/index.tsx", "main": "src/index.tsx",
"scripts": { "scripts": {

@ -41,8 +41,6 @@ function ItemAttributesComponent(props: Props): JSX.Element {
collapsed, attributes, values, readonly, changeAttribute, collapse, collapsed, attributes, values, readonly, changeAttribute, collapse,
} = props; } = props;
const sorted = [...attributes].sort((a: any, b: any): number => a.inputType.localeCompare(b.inputType));
return ( return (
<Row> <Row>
<Collapse <Collapse
@ -51,7 +49,7 @@ function ItemAttributesComponent(props: Props): JSX.Element {
onChange={collapse} onChange={collapse}
> >
<Collapse.Panel header={<span style={{ fontSize: '11px' }}>Details</span>} key='details'> <Collapse.Panel header={<span style={{ fontSize: '11px' }}>Details</span>} key='details'>
{sorted.map( {attributes.map(
(attribute: any): JSX.Element => ( (attribute: any): JSX.Element => (
<Row <Row
key={attribute.id} key={attribute.id}

Loading…
Cancel
Save