diff --git a/public/locales/en/translation.json b/public/locales/en/translation.json
index 6fd3fe90..582a3388 100644
--- a/public/locales/en/translation.json
+++ b/public/locales/en/translation.json
@@ -350,7 +350,8 @@
"refresh": {
"accepted": "Refresh accepted",
"notAllowed": "Refresh not possible"
- }
+ },
+ "updated": "Last update"
},
"edit": {
"refresh": "Refresh data",
diff --git a/public/locales/fr/translation.json b/public/locales/fr/translation.json
index 1c59c827..9ca8b209 100644
--- a/public/locales/fr/translation.json
+++ b/public/locales/fr/translation.json
@@ -402,7 +402,8 @@
"refresh": {
"accepted": "Actualisation acceptée",
"notAllowed": "Actualisation impossible"
- }
+ },
+ "updated": "Dernière mise à jour"
},
"edit": {
"refresh": "Actualiser les données",
diff --git a/src/modules/RA/DataSource/index.js b/src/modules/RA/DataSource/index.js
index 2a05b4ff..4d93e99e 100644
--- a/src/modules/RA/DataSource/index.js
+++ b/src/modules/RA/DataSource/index.js
@@ -66,3 +66,18 @@ export const scrTypes = {
[EPSG3857]: 'EPSG:3857 - WGS 84 / Pseudo-Mercator',
};
export const fieldSCRChoices = typesToChoices(scrTypes);
+
+export const sourceStatusTypes = {
+ 0: 'datasource.refreshStatus.syncNeeded',
+ 1: 'datasource.refreshStatus.pending',
+ 2: 'datasource.refreshStatus.done',
+};
+export const sourceStatusChoices = typesToChoices(sourceStatusTypes);
+
+export const reportStatusTypes = {
+ 0: 'datasource.refreshStatus.success',
+ 1: 'datasource.refreshStatus.error',
+ 2: 'datasource.refreshStatus.warning',
+ 3: 'datasource.refreshStatus.pending',
+};
+export const reportStatusChoices = typesToChoices(reportStatusTypes);
diff --git a/src/modules/RA/DataSource/views/List.js b/src/modules/RA/DataSource/views/List.js
index 1bc5cbae..06300d76 100644
--- a/src/modules/RA/DataSource/views/List.js
+++ b/src/modules/RA/DataSource/views/List.js
@@ -16,6 +16,8 @@ import {
geomTypeChoices,
sourceTypes,
sourceTypeChoices,
+ sourceStatusChoices,
+ reportStatusChoices,
} from '..';
import CommonBulkActionButtons
from '../../../../components/react-admin/CommonBulkActionButtons';
@@ -39,6 +41,16 @@ const ListFilters = props => (
label="datasource.form.geometry"
choices={geomTypeChoices}
/>
+
+
);
@@ -74,6 +86,12 @@ export const DataSourceList = props => (
}
/>
+ new Date(updatedAt).toLocaleDateString()}
+ />
+