TagSpaces is an offline, open source, document manager with tagging support
making the only(file) web location default
Ilian Sapundshievf864150daaf8
diff --git a/app/reducers/locations.js b/app/reducers/locations.jsindex 4e1da8a1e..8ce07b946 100644--- a/app/reducers/locations.js+++ b/app/reducers/locations.js@@ -21,6 +21,7 @@ import uuidv1 from 'uuid';import { immutablySwapItems } from '../utils/misc';import PlatformIO from '../services/platform-io';import { actions as AppActions } from '../reducers/app';+import AppConfig from '../config';export const types = {ADD_LOCATION: 'APP/ADD_LOCATION',@@ -63,7 +64,7 @@ Object.keys(devicePaths).forEach(key => {type: locationType.TYPE_LOCAL,name: key, // TODO use i18npaths: [devicePaths[key]],- isDefault: false,+ isDefault: (AppConfig.isWeb && devicePaths[key] === '/files/'), // Used for the web ts demoisReadOnly: false,persistIndex: false});