TagSpaces is an offline, open source, document manager with tagging support
chore: cleaning up code
Ilian Sapundshievb5ee315eba0f
diff --git a/app/components/LocationManager.tsx b/app/components/LocationManager.tsxindex 45c2235ad..31308a9d4 100644--- a/app/components/LocationManager.tsx+++ b/app/components/LocationManager.tsx@@ -138,19 +138,6 @@ const LocationManager = (props: Props) => {const target = selection.currentTarget;const file = target.files[0];setImportFile(file);- /* const reader: any = new FileReader();-- reader.onload = () => {- try {- const locations = Pro.LocationsExport.importLocations(reader.result);- if (locations) {- props.importLocations(locations);- }- } catch (e) {- console.error('Error : ', e);- }- };- reader.readAsText(file); */target.value = null;}@@ -161,12 +148,7 @@ const LocationManager = (props: Props) => {<LocationManagerMenuimportLocations={() => {- if (AppConfig.isCordovaAndroid && AppConfig.isCordovaiOS) {- // TODO Select directory or file from dialog- showSelectDirectoryDialog();- } else {- fileInputRef.current.click();- }+ fileInputRef.current.click();}}// importLocations={() => setImportLocationsDialogOpened(true)}exportLocations={() => setExportLocationsDialogOpened(true)}diff --git a/app/components/LocationView.tsx b/app/components/LocationView.tsxindex 56f5d666d..7176319c3 100644--- a/app/components/LocationView.tsx+++ b/app/components/LocationView.tsx@@ -76,8 +76,8 @@ interface Props {toggleUploadDialog: () => void;moveFiles: (files: Array<string>, destination: string) => void;showUnixHiddenEntries: boolean;- setEditLocationDialogOpened: boolean;- setDeleteLocationDialogOpened: boolean;+ setEditLocationDialogOpened: (open: boolean) => void;+ setDeleteLocationDialogOpened: (open: boolean) => void;selectedLocation: Location;setSelectedLocation: (loc: Location) => void;changeLocation: (loc: Location) => void;diff --git a/app/services/webdav-io.ts b/app/services/webdav-io.tsindex a2b7ff1f5..467d28d7c 100644--- a/app/services/webdav-io.ts+++ b/app/services/webdav-io.ts@@ -96,7 +96,7 @@ export default class WebDAVIO {getDevicePaths = (): Object => {const paths = {- Home: '/files/'+ // Home: '/files/'};return paths;};