TagSpaces is an offline, open source, document manager with tagging support
feat: disable location export by external locations
Ilian Sapundshiev36157b66b6c6
diff --git a/app/components/menus/LocationManagerMenu.tsx b/app/components/menus/LocationManagerMenu.tsxindex 9157b13cb..172c6ae8f 100644--- a/app/components/menus/LocationManagerMenu.tsx+++ b/app/components/menus/LocationManagerMenu.tsx@@ -93,7 +93,7 @@ const LocationManagerMenu = (props: Props) => {</MenuItem>);- if (!AppConfig.isCordovaAndroid) {+ if (!AppConfig.locationsReadOnly) {// https://trello.com/c/z6ESlqxz/697-exports-to-json-or-csv-do-not-work-on-androidmenuItems.push(<MenuItem@@ -118,30 +118,30 @@ const LocationManagerMenu = (props: Props) => {/></MenuItem>);+ menuItems.push(+ <MenuItem+ disabled={!Pro}+ key="locationManagerMenuImportLocations"+ data-tid="locationManagerMenuImportLocationsTID"+ onClick={() => {+ setLocationManagerMenuAnchorEl(null);+ props.importLocations();+ }}+ >+ <ListItemIcon>+ <ExportImportIcon />+ </ListItemIcon>+ <ListItemText+ primary={+ <>+ {i18n.t('core:importLocationTitle')}+ <ProLabel />+ </>+ }+ />+ </MenuItem>+ );}- menuItems.push(- <MenuItem- disabled={!Pro}- key="locationManagerMenuImportLocations"- data-tid="locationManagerMenuImportLocationsTID"- onClick={() => {- setLocationManagerMenuAnchorEl(null);- props.importLocations();- }}- >- <ListItemIcon>- <ExportImportIcon />- </ListItemIcon>- <ListItemText- primary={- <>- {i18n.t('core:importLocationTitle')}- <ProLabel />- </>- }- />- </MenuItem>- );menuItems.push(<MenuItem