Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Mirador Video
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
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 Video
Commits
99a1882f
Commit
99a1882f
authored
2 years ago
by
Anthony
Browse files
Options
Downloads
Patches
Plain Diff
Improve working with loading message and error management
parent
ffb57588
No related branches found
No related tags found
1 merge request
!17
WIP thumbnail on accordion.
Pipeline
#1401
failed
2 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/AnnotationManifestsItem.js
+55
-41
55 additions, 41 deletions
src/components/AnnotationManifestsItem.js
with
55 additions
and
41 deletions
src/components/AnnotationManifestsItem.js
+
55
−
41
View file @
99a1882f
...
...
@@ -18,7 +18,6 @@ export class AnnotationManifestsItem extends Component {
constructor
(
props
)
{
super
(
props
);
this
.
handleOpenManifestSideToSide
=
this
.
handleOpenManifestSideToSide
.
bind
(
this
);
}
/** */
...
...
@@ -40,51 +39,66 @@ export class AnnotationManifestsItem extends Component {
/** */
render
()
{
const
{
classes
,
t
,
language
,
manifestId
,
thumbnail
,
title
,
description
classes
,
t
,
manifestId
,
thumbnail
,
title
,
description
,
error
,
ready
}
=
this
.
props
;
if
(
!
ready
)
{
return
(
<
Typography
>
Chargement
de
la
ressource
en
cours
<
/Typography
>
);
}
if
(
error
)
{
return
(
<
Typography
>
Impossible
de
charger
le
manifest
<
/Typography
>
);
}
return
(
<
Typography
>
<
Card
className
=
{
classes
.
root
}
>
<
CardActionArea
>
<
Card
className
=
{
classes
.
root
}
>
<
CardActionArea
>
{
thumbnail
&&
(
<
CardMedia
className
=
{
classes
.
thumbnail
}
component
=
"
img
"
height
=
"
140
"
image
=
{
thumbnail
}
alt
=
"
green iguana
"
/>
)
}
<
CardContent
>
<
Typography
>
{
title
||
manifestId
}
<
/Typography
>
{
thumbnail
&&
(
<
CardMedia
className
=
{
classes
.
thumbnail
}
component
=
"
img
"
height
=
"
140
"
image
=
{
thumbnail
}
alt
=
"
green iguana
"
/>
description
&&
(
<
Typography
>
{
description
}
<
/Typography
>
)
}
<
CardContent
>
<
Typography
>
{
title
||
manifestId
}
<
/Typography
>
{
description
&&
(
<
Typography
>
{
description
}
<
/Typography
>
)}
<
/CardContent
>
<
/CardActionArea
>
<
CardActions
>
<
Tooltip
title
=
{
t
(
'
openManifestInOtherWindow
'
,
{
manifestId
})}
>
<
Button
size
=
"
small
"
color
=
"
primary
"
onClick
=
{(
e
)
=>
{
this
.
handleOpenManifestSideToSide
(
e
,
manifestId
);
}}
>
{
t
(
'
open
'
)}
<
/Button
>
<
/Tooltip
>
<
/CardActions
>
<
/Card
>
<
/Typography
>
}
<
/CardContent
>
<
/CardActionArea
>
<
CardActions
>
<
Tooltip
title
=
{
t
(
'
openManifestInOtherWindow
'
,
{
manifestId
})}
>
<
Button
size
=
"
small
"
color
=
"
primary
"
onClick
=
{(
e
)
=>
{
this
.
handleOpenManifestSideToSide
(
e
,
manifestId
);
}}
>
{
t
(
'
open
'
)}
<
/Button
>
<
/Tooltip
>
<
/CardActions
>
<
/Card
>
);
}
}
...
...
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