TagSpaces is an offline, open source, document manager with tagging support
opening the search area on searching for specific file
Ilian Sapundshievfae538892e23
diff --git a/app/components/TagLibrary.js b/app/components/TagLibrary.jsindex 0ec861b0c..f2701203d 100644--- a/app/components/TagLibrary.js+++ b/app/components/TagLibrary.js@@ -61,6 +61,7 @@ type Props = {tagBackgroundColor: string,tagGroups: Array<TagGroup>,allTags: Array<Tag>,+ togglePanel: () => void,toggleTagGroup: (expanded: boolean, uuid: string) => void,removeTagGroup: (uuid: string) => void,moveTagGroupUp: (uuid: string) => void,@@ -342,6 +343,7 @@ class TagLibrary extends React.Component<Props, State> {toggleTagGroup={this.props.toggleTagGroup}/><TagMenu+ togglePanel={this.props.togglePanel}anchorEl={this.state.tagMenuAnchorEl}open={this.state.tagMenuOpened}onClose={this.handleCloseTagMenu}diff --git a/app/components/VerticalNavigation.js b/app/components/VerticalNavigation.jsindex ccb8218b7..89c5e5e3d 100644--- a/app/components/VerticalNavigation.js+++ b/app/components/VerticalNavigation.js@@ -26,7 +26,7 @@ import NewFileIcon from '@material-ui/icons/Add';import LocationsIcon from '@material-ui/icons/WorkOutline';import TagLibraryIcon from '@material-ui/icons/LocalOfferOutlined';import SearchIcon from '@material-ui/icons/SearchOutlined';-import PerspectivesIcon from '@material-ui/icons/MapOutlined';+// import PerspectivesIcon from '@material-ui/icons/MapOutlined';import SettingsIcon from '@material-ui/icons/Settings';import ThemingIcon from '@material-ui/icons/InvertColors';import UpgradeIcon from '@material-ui/icons/FlightTakeoff';@@ -47,7 +47,6 @@ import Search from '../components/Search';import PerspectiveManager from '../components/PerspectiveManager';import LocationManager from '../components/LocationManager';import i18n from '../services/i18n';-import PlatformIO from '../services/platform-io';import { Pro } from '../pro';import {actions as AppActions,@@ -450,6 +449,7 @@ class VerticalNavigation extends React.Component<Props, State> {}}/><TagLibrary+ togglePanel={this.togglePanel}style={{display: this.state.isTagLibraryVisible ? 'block' : 'none'}}diff --git a/app/components/menus/TagMenu.js b/app/components/menus/TagMenu.jsindex 127ebe07b..b7ddf1020 100644--- a/app/components/menus/TagMenu.js+++ b/app/components/menus/TagMenu.js@@ -35,6 +35,7 @@ import { actions as LocationIndexActions } from '../../reducers/location-index';import i18n from '../../services/i18n';import { type SearchQuery } from '../../services/search';import { getMaxSearchResults } from '../../reducers/settings';+import { AppVerticalPanels } from '../VerticalNavigation';type Props = {anchorEl?: Object,@@ -45,6 +46,7 @@ type Props = {deleteTag: (uuid: string, tagGroupUuid: string) => void,searchLocationIndex: (searchQuery: SearchQuery) => void,editTag: () => void,+ togglePanel: () => void,maxSearchResults: number};@@ -66,6 +68,7 @@ class TagLibraryMenu extends React.Component<Props, State> {showFilesWithThisTag = () => {if (this.props.selectedTag) {+ this.props.togglePanel(AppVerticalPanels.search);this.props.searchLocationIndex({tagsAND: [this.props.selectedTag],maxSearchResults: this.props.maxSearchResultsdiff --git a/app/reducers/location-index.js b/app/reducers/location-index.jsindex 7ca9d908c..632e02583 100644--- a/app/reducers/location-index.js+++ b/app/reducers/location-index.js@@ -258,7 +258,7 @@ export const actions = {getState: () => Object) => {dispatch(AppActions.showNotification(i18n.t('core:searching'), 'default', false));- setTimeout(() => { // Workarround used to show the start search notication+ setTimeout(() => { // Workaround used to show the start search notificationSearch.searchLocationIndex(getState().locationIndex.currentDirectoryIndex,searchQuery