TagSpaces is an offline, open source, document manager with tagging support
added context menu for locations, tag groups and folders
Ilian Sapundshievc2ebd1eab3e5
diff --git a/app/components/FolderContainer.js b/app/components/FolderContainer.jsindex 307b90ad4..adb5cb677 100644--- a/app/components/FolderContainer.js+++ b/app/components/FolderContainer.js@@ -424,6 +424,7 @@ class FolderContainer extends React.Component<Props, State> {}className={classes.folderButton}onClick={this.openDirectoryMenu}+ onContextMenu={this.openDirectoryMenu}>{extractShortDirectoryName(normalizePath(currentDirectoryPath)diff --git a/app/components/LocationManager.js b/app/components/LocationManager.jsindex 75ee7bb48..eae33b5a3 100644--- a/app/components/LocationManager.js+++ b/app/components/LocationManager.js@@ -591,6 +591,7 @@ class LocationManager extends React.Component<Props, State> {title={location.isDefault ? i18n.t('core: thisIsStartupLocation') + ' : ' + location.paths[0] : location.paths[0]}buttononClick={() => this.handleLocationClick(location)}+ onContextMenu={event => this.handleLocationContextMenuClick(event, location)}><ListItemIcon style={{ marginRight: 0 }}>{ location.type === locationType.TYPE_CLOUD ?@@ -614,6 +615,7 @@ class LocationManager extends React.Component<Props, State> {aria-haspopup="true"data-tid={'locationMoreButton_' + location.name}onClick={event => this.handleLocationContextMenuClick(event, location)}+ onContextMenu={event => this.handleLocationContextMenuClick(event, location)}>{location.isDefault && (<DefaultLocationIcon data-tid="startupIndication" />diff --git a/app/components/TagLibrary.js b/app/components/TagLibrary.jsindex f786b71c5..8907b2de5 100644--- a/app/components/TagLibrary.js+++ b/app/components/TagLibrary.js@@ -236,6 +236,7 @@ class TagLibrary extends React.Component<Props, State> {style={{ maxWidth: 250 }}className={this.props.classes.listItem}onClick={event => this.handleTagGroupTitleClick(event, tagGroup)}+ onContextMenu={event => this.handleTagGroupMenu(event, tagGroup)}><ListItemIcon style={{ marginRight: 0 }}>{tagGroup.expanded ? <ArrowDownIcon /> : <ArrowRightIcon />}@@ -255,6 +256,7 @@ class TagLibrary extends React.Component<Props, State> {data-tid={'tagLibraryMoreButton_' + tagGroup.title.replace(/ /g,'_')}style={{ marginRight: -4 }}onClick={event => this.handleTagGroupMenu(event, tagGroup)}+ onContextMenu={event => this.handleTagGroupMenu(event, tagGroup)}><MoreVertIcon /></IconButton>