Skip to content

TagSpaces is an offline, open source, document manager with tagging support

Empty locations in mobile view after click on create (#1950)

Stanimirfd1aeb0ce0eb
diff --git a/app/containers/MainPage.tsx b/app/containers/MainPage.tsx
index 5abceeb32..08a889a48 100644
--- a/app/containers/MainPage.tsx
+++ b/app/containers/MainPage.tsx
@@ -186,7 +186,7 @@ interface Props {
openTagLibraryPanel: () => void;
// openSearchPanel: () => void;
openHelpFeedbackPanel: () => void;
- closeAllVerticalPanels: () => void;
+ // closeAllVerticalPanels: () => void;
leftSplitSize: number;
mainSplitSize: any;
toggleShowUnixHiddenEntries: () => void;
@@ -906,7 +906,7 @@ function MainPage(props: Props) {
>
<MobileNavigation
width={drawerWidth}
- hideDrawer={() => props.closeAllVerticalPanels()}
+ hideDrawer={() => setDrawerOpened(false)}
/>
</SwipeableDrawer>
{renderContainers()}
@@ -999,7 +999,7 @@ function mapDispatchToProps(dispatch) {
openTagLibraryPanel: AppActions.openTagLibraryPanel,
// openSearchPanel: AppActions.openSearchPanel,
openHelpFeedbackPanel: AppActions.openHelpFeedbackPanel,
- closeAllVerticalPanels: AppActions.closeAllVerticalPanels,
+ // closeAllVerticalPanels: AppActions.closeAllVerticalPanels,
toggleDeleteMultipleEntriesDialog:
AppActions.toggleDeleteMultipleEntriesDialog,
setFirstRun: SettingsActions.setFirstRun,
diff --git a/app/reducers/app.ts b/app/reducers/app.ts
index f3a7c25ca..24e4c3e67 100644
--- a/app/reducers/app.ts
+++ b/app/reducers/app.ts
@@ -1007,7 +1007,7 @@ export default (state: any = initialState, action: any) => {
helpFeedbackPanelOpened: true
};
}
- case types.CLOSE_ALLVERTICAL_PANELS: {
+ /*case types.CLOSE_ALLVERTICAL_PANELS: {
return {
...state,
locationManagerPanelOpened: false,
@@ -1015,7 +1015,7 @@ export default (state: any = initialState, action: any) => {
searchPanelOpened: false,
helpFeedbackPanelOpened: false
};
- }
+ }*/
case types.ADD_EXTENSIONS: {
const extensions = mergeByProp(
state.extensions,
@@ -1300,7 +1300,7 @@ export const actions = {
openTagLibraryPanel: () => ({ type: types.OPEN_TAGLIBRARY_PANEL }),
openSearchPanel: () => ({ type: types.OPEN_SEARCH_PANEL }),
openHelpFeedbackPanel: () => ({ type: types.OPEN_HELPFEEDBACK_PANEL }),
- closeAllVerticalPanels: () => ({ type: types.CLOSE_ALLVERTICAL_PANELS }),
+ //closeAllVerticalPanels: () => ({ type: types.CLOSE_ALLVERTICAL_PANELS }),
setIsLoading: (isLoading: boolean) => ({
type: types.SET_ISLOADING,
isLoading