From 9d29ee2bff31661638c9984032a94ac7d920d800 Mon Sep 17 00:00:00 2001 From: Stefano Ricci <1219739+SteRiccio@users.noreply.github.com> Date: Wed, 7 Jul 2021 13:20:33 +0200 Subject: [PATCH] show data import in sidebar (#1568) Co-authored-by: Stefano Ricci --- core/i18n/resources/en.js | 7 ++++--- webapp/views/App/SideBar/Modules/utils.js | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/core/i18n/resources/en.js b/core/i18n/resources/en.js index 9bad898091..a026940b0a 100644 --- a/core/i18n/resources/en.js +++ b/core/i18n/resources/en.js @@ -189,6 +189,7 @@ Do you want to proceed?`, records: 'Records', explorer: 'Explorer', export: 'Export', + import: 'Import', validationReport: 'Validation report', users: 'Users', @@ -305,7 +306,7 @@ We will send soon an email to your address with the instructions on how to acces }, recordsImport: { deleteAllRecordsBeforeImport: 'Delete all records before import', - importFromCollect: 'Import from Collect', + importFromCollect: 'Import data from Collect / Collect Mobile', importComplete: 'Import complete. {{insertedRecords}} records imported', }, }, @@ -952,8 +953,8 @@ $t(common.cantUndoWarning)`, authGroups: { systemAdmin: { - label: 'System Administrator', - label_plural: 'System Administrators', + label: 'System administrator', + label_plural: 'System administrators', description: 'OF Arena system administrators', }, surveyAdmin: { diff --git a/webapp/views/App/SideBar/Modules/utils.js b/webapp/views/App/SideBar/Modules/utils.js index 8128969910..732c492427 100644 --- a/webapp/views/App/SideBar/Modules/utils.js +++ b/webapp/views/App/SideBar/Modules/utils.js @@ -55,6 +55,7 @@ export const getModulesHierarchy = (user, surveyInfo) => [ dataModules.records, dataModules.explorer, dataModules.export, + ...(Authorizer.canEditSurvey(user, surveyInfo) ? [dataModules.import] : []), ...(Authorizer.canCleanseRecords(user, surveyInfo) ? [dataModules.validationReport] : []), ], hidden: Survey.isTemplate(surveyInfo),