Skip to content
Snippets Groups Projects
Commit 03c0a0ac authored by Anthony's avatar Anthony
Browse files

Thumbail et trade ok

parent 99a1882f
Branches
Tags
1 merge request!17WIP thumbnail on accordion.
Pipeline #1405 failed
......@@ -7,6 +7,7 @@ import {
import Button from '@material-ui/core/Button';
import Tooltip from '@material-ui/core/Tooltip';
import ns from '../config/css-ns';
import ErrorIcon from '@material-ui/icons/ErrorOutlineSharp';
/**
* AnnotationManifestsItem
......@@ -42,18 +43,16 @@ export class AnnotationManifestsItem extends Component {
classes, t, manifestId, thumbnail, title, description, error, ready
} = this.props;
if (!ready) {
if (error) {
return (
<Typography>
Chargement de la ressource en cours
</Typography>
<Typography>{t('resourceError', { manifestId })}</Typography>
);
}
if (error) {
if (!ready) {
return (
<Typography>
Impossible de charger le manifest
<Typography>{t('resourceLoading')}</Typography>
</Typography>
);
}
......
......@@ -116,6 +116,8 @@
"previousCanvas": "Previous item",
"related": "Related",
"resource": "Resource",
"resourceError": "Error when loading ressource from {{ manifestId }}",
"resourceLoading": "Loading ressource ... ",
"retry": "Retry",
"right": "Right",
"rights": "License",
......
......@@ -112,6 +112,8 @@
"previousCanvas": "Précédent",
"related": "En relation",
"resource": "Ressource",
"resourceError": "Erreur lors du changement de la ressource {{ manifestId }}",
"resourceLoading": "Chargement en cours de la ressource ... ",
"retry": "Réessayer",
"right": "Droite",
"rights": "Licence",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment