Skip to content

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

added create new file button in vertical navigation

Ilian Sapundshiev36bb5629f29a
diff --git a/app/components/VerticalNavigation.js b/app/components/VerticalNavigation.js
index 195c452b4..85734d474 100644
--- a/app/components/VerticalNavigation.js
+++ b/app/components/VerticalNavigation.js
@@ -21,6 +21,7 @@ import React from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import IconButton from '@material-ui/core/IconButton';
+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';
@@ -289,6 +290,15 @@ class VerticalNavigation extends React.Component<Props, State> {
alt="TagSpaces Logo"
/>
</IconButton>
+ <IconButton
+ className={style.verticalNavButton}
+ onClick={this.props.toggleCreateFileDialog}
+ style={{ ...this.styles.button, marginBottom: 20 }}
+ title={i18n.t('core:createFileTitle')}
+ data-tid="locationManager"
+ >
+ <NewFileIcon style={this.styles.buttonIcon} />
+ </IconButton>
<IconButton
className={style.verticalNavButton}
onClick={() => {