Skip to content

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

fix: small ui changes

Ilian Sapundshievefd91f4c98d5
diff --git a/app/components/menus/LocationManagerMenu.tsx b/app/components/menus/LocationManagerMenu.tsx
index 535b5d604..9157b13cb 100644
--- a/app/components/menus/LocationManagerMenu.tsx
+++ b/app/components/menus/LocationManagerMenu.tsx
@@ -59,22 +59,6 @@ const LocationManagerMenu = (props: Props) => {
] = useState<null | HTMLElement>(null);
const menuItems = [];
- menuItems.push(
- <MenuItem
- key="updateAllLocationIndexes"
- data-tid="updateAllLocationIndexes"
- onClick={() => {
- setLocationManagerMenuAnchorEl(null);
- props.createLocationsIndexes();
- }}
- >
- <ListItemIcon>
- <UpdateIndexIcon />
- </ListItemIcon>
- <ListItemText primary={i18n.t('core:updateAllLocationIndexes')} />
- </MenuItem>
- );
-
if (!AppConfig.locationsReadOnly) {
menuItems.push(
<MenuItem
@@ -175,6 +159,22 @@ const LocationManagerMenu = (props: Props) => {
</MenuItem>
);
+ menuItems.push(
+ <MenuItem
+ key="updateAllLocationIndexes"
+ data-tid="updateAllLocationIndexes"
+ onClick={() => {
+ setLocationManagerMenuAnchorEl(null);
+ props.createLocationsIndexes();
+ }}
+ >
+ <ListItemIcon>
+ <UpdateIndexIcon />
+ </ListItemIcon>
+ <ListItemText primary={i18n.t('core:updateAllLocationIndexes')} />
+ </MenuItem>
+ );
+
menuItems.push(
<MenuItem
key="locationManagerMenuHelp"
diff --git a/app/locales/en/core.json b/app/locales/en/core.json
index 6f97c5d7f..2d5abf65d 100644
--- a/app/locales/en/core.json
+++ b/app/locales/en/core.json
@@ -33,7 +33,7 @@
"editTagGroupNewName": "Tag Group Name",
"createTagGroupTitle": "Create Tag Group",
"createTagGroupName": "Tag Group Name",
- "fullTextIndexRegenerate": "Index for this location must be regenerated before you can perform fullText search. Do you want to regenerate index now?",
+ "fullTextIndexRegenerate": "The search index for this location should be regenerated before performing full text searches. Do you want to start indexing?",
"createNewDirectoryTitle": "Create New Directory",
"createNewDirectoryTitleName": "New Directory Name",
"deleteDirectoryTitleConfirm": "Confirm Delete Directory",