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
a2fa01ca
Commit
a2fa01ca
authored
4 years ago
by
Lutz Helm
Browse files
Options
Downloads
Patches
Plain Diff
Adjust AnnotationExportDialog style
parent
b022a5db
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/AnnotationExportDialog.js
+21
-8
21 additions, 8 deletions
src/AnnotationExportDialog.js
with
21 additions
and
8 deletions
src/AnnotationExportDialog.js
+
21
−
8
View file @
a2fa01ca
...
@@ -3,12 +3,24 @@ import Dialog from '@material-ui/core/Dialog';
...
@@ -3,12 +3,24 @@ import Dialog from '@material-ui/core/Dialog';
import
DialogContent
from
'
@material-ui/core/DialogContent
'
;
import
DialogContent
from
'
@material-ui/core/DialogContent
'
;
import
DialogTitle
from
'
@material-ui/core/DialogTitle
'
;
import
DialogTitle
from
'
@material-ui/core/DialogTitle
'
;
import
GetAppIcon
from
'
@material-ui/icons/GetApp
'
;
import
GetAppIcon
from
'
@material-ui/icons/GetApp
'
;
import
List
from
'
@material-ui/core/List
'
;
import
ListItem
from
'
@material-ui/core/ListItem
'
;
import
ListItemIcon
from
'
@material-ui/core/ListItemIcon
'
;
import
ListItemIcon
from
'
@material-ui/core/ListItemIcon
'
;
import
ListItemText
from
'
@material-ui/core/ListItemText
'
;
import
ListItemText
from
'
@material-ui/core/ListItemText
'
;
import
MenuList
from
'
@material-ui/core/MenuList
'
;
import
MenuItem
from
'
@material-ui/core/MenuItem
'
;
import
Typography
from
'
@material-ui/core/Typography
'
;
import
Typography
from
'
@material-ui/core/Typography
'
;
import
PropTypes
,
{
bool
}
from
'
prop-types
'
;
import
PropTypes
,
{
bool
}
from
'
prop-types
'
;
import
{
withStyles
}
from
'
@material-ui/core
'
;
const
styles
=
theme
=>
({
listitem
:
{
'
&:focus
'
:
{
backgroundColor
:
theme
.
palette
.
action
.
focus
,
},
'
&:hover
'
:
{
backgroundColor
:
theme
.
palette
.
action
.
hover
,
},
},
})
/** */
/** */
class
AnnotationExportDialog
extends
Component
{
class
AnnotationExportDialog
extends
Component
{
...
@@ -62,7 +74,7 @@ class AnnotationExportDialog extends Component {
...
@@ -62,7 +74,7 @@ class AnnotationExportDialog extends Component {
/** */
/** */
render
()
{
render
()
{
const
{
handleClose
,
open
}
=
this
.
props
;
const
{
classes
,
handleClose
,
open
}
=
this
.
props
;
const
{
exportLinks
}
=
this
.
state
;
const
{
exportLinks
}
=
this
.
state
;
return
(
return
(
<
Dialog
<
Dialog
...
@@ -79,10 +91,11 @@ class AnnotationExportDialog extends Component {
...
@@ -79,10 +91,11 @@ class AnnotationExportDialog extends Component {
{
exportLinks
===
undefined
||
exportLinks
.
length
===
0
?
(
{
exportLinks
===
undefined
||
exportLinks
.
length
===
0
?
(
<
Typography
variant
=
"
body1
"
>
No
annotations
stored
yet
.
<
/Typography
>
<
Typography
variant
=
"
body1
"
>
No
annotations
stored
yet
.
<
/Typography
>
)
:
(
)
:
(
<
List
>
<
Menu
List
>
{
exportLinks
.
map
((
dl
)
=>
(
{
exportLinks
.
map
((
dl
)
=>
(
<
List
Item
<
Menu
Item
button
button
className
=
{
classes
.
listitem
}
component
=
"
a
"
component
=
"
a
"
key
=
{
dl
.
canvasId
}
key
=
{
dl
.
canvasId
}
aria
-
label
=
{
`Export annotations for
${
dl
.
label
}
`
}
aria
-
label
=
{
`Export annotations for
${
dl
.
label
}
`
}
...
@@ -95,9 +108,9 @@ class AnnotationExportDialog extends Component {
...
@@ -95,9 +108,9 @@ class AnnotationExportDialog extends Component {
<
ListItemText
>
<
ListItemText
>
{
`Export annotations for "
${
dl
.
label
}
"`
}
{
`Export annotations for "
${
dl
.
label
}
"`
}
<
/ListItemText
>
<
/ListItemText
>
<
/
List
Item
>
<
/
Menu
Item
>
))}
))}
<
/List
>
<
/
Menu
List
>
)}
)}
<
/DialogContent
>
<
/DialogContent
>
<
/Dialog
>
<
/Dialog
>
...
@@ -118,4 +131,4 @@ AnnotationExportDialog.propTypes = {
...
@@ -118,4 +131,4 @@ AnnotationExportDialog.propTypes = {
open
:
bool
.
isRequired
,
open
:
bool
.
isRequired
,
};
};
export
default
AnnotationExportDialog
;
export
default
withStyles
(
styles
)(
AnnotationExportDialog
)
;
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