Skip to content

Commit

Permalink
show data import in sidebar (#1568)
Browse files Browse the repository at this point in the history
Co-authored-by: Stefano Ricci <[email protected]>
  • Loading branch information
SteRiccio and SteRiccio authored Jul 7, 2021
1 parent 5d71587 commit 9d29ee2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions core/i18n/resources/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ Do you want to proceed?`,
records: 'Records',
explorer: 'Explorer',
export: 'Export',
import: 'Import',
validationReport: 'Validation report',

users: 'Users',
Expand Down Expand Up @@ -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',
},
},
Expand Down Expand Up @@ -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: {
Expand Down
1 change: 1 addition & 0 deletions webapp/views/App/SideBar/Modules/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 9d29ee2

Please sign in to comment.