Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Mirador annotations
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
IIIF
Mirador
Mirador annotations
Commits
011e4a30
Commit
011e4a30
authored
1 year ago
by
Anthony
Browse files
Options
Downloads
Patches
Plain Diff
Improve edit list displaying
parent
5166ae75
No related branches found
No related tags found
1 merge request
!10
Draft: MigratingAnnotationCreation to MUI5.
Pipeline
#1904
failed
1 year ago
Stage: test
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/annotationForm/AnnotationFormOverlay/Accordion.js
+8
-9
8 additions, 9 deletions
src/annotationForm/AnnotationFormOverlay/Accordion.js
src/annotationForm/AnnotationFormOverlay/AnnotationFormOverlayTool.js
+2
-1
2 additions, 1 deletion
...onForm/AnnotationFormOverlay/AnnotationFormOverlayTool.js
with
10 additions
and
10 deletions
src/annotationForm/AnnotationFormOverlay/Accordion.js
+
8
−
9
View file @
011e4a30
...
...
@@ -5,21 +5,20 @@ import React from 'react';
import
Typography
from
'
@mui/material/Typography
'
;
import
PropTypes
from
'
prop-types
'
;
import
ExpandMoreIcon
from
'
@mui/icons-material/ExpandMore
'
;
import
Button
from
"
@mui/material/Button
"
;
import
DeleteIcon
from
"
@mui/icons-material/DeleteForever
"
;
import
Button
from
'
@mui/material/Button
'
;
import
DeleteIcon
from
'
@mui/icons-material/DeleteForever
'
;
function
AccordionShapes
({
shapes
,
deleteShape
})
{
function
AccordionShapes
({
shapes
,
deleteShape
,
currentShapeId
})
{
return
(
<
Paper
>
{
shapes
.
map
((
shape
)
=>
(
<
Accordion
>
<
Accordion
style
=
{
shape
.
id
===
currentShapeId
?
{
fontWeight
:
'
bold
'
}
:
{}}
>
<
AccordionSummary
expandIcon
=
{
<
ExpandMoreIcon
/>
}
aria
-
controls
=
"
panel1-content
"
id
=
"
panel1-header
"
>
<
Typography
>
{
shape
.
id
}
<
/Typography
>
{
shape
.
id
}
<
/AccordionSummary
>
<
AccordionDetails
>
<
ul
>
...
...
This diff is collapsed.
Click to expand it.
src/annotationForm/AnnotationFormOverlay/AnnotationFormOverlayTool.js
+
2
−
1
View file @
011e4a30
...
...
@@ -61,7 +61,7 @@ function AnnotationFormOverlayTool({
currentShape
&&
(
<
Paper
>
<
Typography
variant
=
"
overline
"
>
Forme
selectionné
Forme
selectionné
e
<
/Typography
>
<
ul
>
...
...
@@ -77,6 +77,7 @@ function AnnotationFormOverlayTool({
)
}
<
AccordionShapes
currentShapeId
=
{
currentShape
?.
id
}
shapes
=
{
shapes
}
deleteShape
=
{
deleteShape
}
/
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment