Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fixes 1108] Show some informative message when a GPKG is imported #1107

Merged
merged 1 commit into from
Jul 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions geonode_mapstore_client/client/js/routes/upload/UploadCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function UploadCard({
return (
<div className="gn-upload-card">
<div className="gn-upload-card-header">
{state === 'INVALID' ? <div className="gn-upload-card-error"><FaIcon name="exclamation"/></div> : null}
{state === 'INVALID' ? <div className="gn-upload-card-error"><FaIcon name="exclamation" /></div> : null}
<div className="gn-upload-card-title">
{detailUrl
? <a
Expand All @@ -61,7 +61,7 @@ function UploadCard({
{(progress < 100 && progress > 0) ? <Spinner /> : null}
{onRemove
? <Button size="xs" onClick={onRemove}>
<FaIcon name="trash"/>
<FaIcon name="trash" />
</Button>
: null}
</div>
Expand All @@ -78,14 +78,14 @@ function UploadCard({
<Message msgId="gnviewer.completeUpload" />
</Button>
: null}
{detailUrl
{(detailUrl || progress === 100)
? <Button
variant="primary"
href={detailUrl}
href={detailUrl || '/catalogue/#/search/?f=dataset'}
target="_blank"
rel="noopener noreferrer"
>
<Message msgId="gnviewer.view" />
<Message msgId={`${detailUrl ? 'gnviewer.view' : 'gnhome.viewDatasets'}`} />
</Button>
: null}
{state === 'INVALID'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"groupsCategories": "Gruppenkategorien",
"view": "Ansehen",
"viewDataset": "Datensatz ansehen",
"viewDatasets": "Datensätze anzeigen",
"viewMap": "Karte ansehen",
"viewGeoStory": "GeoStory ansehen",
"viewDocument": "Dokument ansehen",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"groupsCategories": "Groups categories",
"view": "View",
"viewDataset": "View dataset",
"viewDatasets": "View datasets",
"viewMap": "View map",
"viewGeoStory": "View GeoStory",
"viewDocument": "View document",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"groupsCategories": "Categorías de grupo",
"view": "Ver",
"viewDataset": "Ver dataset",
"viewDatasets": "Ver conjuntos de datos",
"viewMap": "Ver mapa",
"viewGeoStory": "Ver GeoStory",
"viewDocument": "Ver documento",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"groupsCategories": "Catégories de groupe",
"view": "Voir",
"viewDataset": "Visualiser dataset",
"viewDatasets": "Afficher les ensembles de données",
"viewMap": "Voir la carte",
"viewGeoStory": "Voir la GeoStory",
"viewDocument": "Voir document",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"groupsCategories": "Categorie gruppo",
"view": "View",
"viewDataset": "Visualizza dataset",
"viewDatasets": "Visualizzare i set di dati",
"viewMap": "Visualizza mappa",
"viewGeoStory": "Visualizza GeoStory",
"viewDocument": "Visualizza documento",
Expand Down