TagSpaces is an offline, open source, document manager with tagging support
chore: small ux improvements
Ilian Sapundshiev9124a11bfca3
diff --git a/src/renderer/components/dialogs/CreateEditLocationDialog.tsx b/src/renderer/components/dialogs/CreateEditLocationDialog.tsxindex 9d81c3f1c..cf984bf33 100644--- a/src/renderer/components/dialogs/CreateEditLocationDialog.tsx+++ b/src/renderer/components/dialogs/CreateEditLocationDialog.tsx@@ -692,7 +692,7 @@ function CreateEditLocationDialog(props: Props) {>{t('core:objectStorage') + ' (AWS, MinIO, Wasabi,...)'}</MenuItem>- {Pro && devMode && (+ {/* {Pro && devMode && (<MenuItemkey="TYPE_WEBDAV"value={locationType.TYPE_WEBDAV}@@ -700,7 +700,7 @@ function CreateEditLocationDialog(props: Props) {>{t('core:webdavLocation') + ' (experimental)'}</MenuItem>- )}+ )} */}</TsSelect></FormControl>)}diff --git a/src/renderer/components/dialogs/components/LocalForm.tsx b/src/renderer/components/dialogs/components/LocalForm.tsxindex 0291aa8bf..7c3f9361c 100644--- a/src/renderer/components/dialogs/components/LocalForm.tsx+++ b/src/renderer/components/dialogs/components/LocalForm.tsx@@ -67,23 +67,6 @@ function LocalForm(props: Props) {return (<Grid container>- <Grid size={12}>- <FormControl fullWidth={true}>- <TsTextField- required- autoFocus- name="name"- slotProps={{- input: { autoCorrect: 'off' },- }}- onChange={(event) => setName(event.target.value)}- value={name}- data-tid="locationName"- // helperText="Please enter location name"- label={t('core:createLocationName') + ' *'}- />- </FormControl>- </Grid><Grid size={12}><FormControl fullWidth={true}><TsTextField@@ -116,6 +99,23 @@ function LocalForm(props: Props) {)}</FormControl></Grid>+ <Grid size={12}>+ <FormControl fullWidth={true}>+ <TsTextField+ required+ autoFocus+ name="name"+ slotProps={{+ input: { autoCorrect: 'off' },+ }}+ onChange={(event) => setName(event.target.value)}+ value={name}+ data-tid="locationName"+ // helperText="Please enter location name"+ label={t('core:createLocationName') + ' *'}+ />+ </FormControl>+ </Grid></Grid>);}diff --git a/src/renderer/components/menus/LocationContextMenu.tsx b/src/renderer/components/menus/LocationContextMenu.tsxindex e0cfa80ee..0678c6daf 100644--- a/src/renderer/components/menus/LocationContextMenu.tsx+++ b/src/renderer/components/menus/LocationContextMenu.tsx@@ -30,6 +30,7 @@ import TsMenuList from '-/components/TsMenuList';import { useCreateEditLocationDialogContext } from '-/components/dialogs/hooks/useCreateEditLocationDialogContext';import { useCurrentLocationContext } from '-/hooks/useCurrentLocationContext';import { useLocationIndexContext } from '-/hooks/useLocationIndexContext';+import { useNotificationContext } from '-/hooks/useNotificationContext';import { createNewInstance, openDirectoryMessage } from '-/services/utils-io';import ContentCopyIcon from '@mui/icons-material/ContentCopy';import OpenFolderNativelyIcon from '@mui/icons-material/Launch';@@ -42,7 +43,6 @@ import { locationType } from '@tagspaces/tagspaces-common/misc';import { generateSharingLink } from '@tagspaces/tagspaces-common/paths';import { getUuid } from '@tagspaces/tagspaces-common/utils-io';import { useTranslation } from 'react-i18next';-import { useNotificationContext } from '-/hooks/useNotificationContext';interface Props {}@@ -116,7 +116,7 @@ function LocationContextMenu(props: Props) {const showDeleteLocationDialog = () => {setLocationDirectoryContextMenuAnchorEl(null);openConfirmDialog(- t('core:deleteLocationTitleAlert'),+ t('core:removeLocation'),t('core:deleteLocationContentAlert', {locationName: selectedLocation ? selectedLocation.name : '',}),diff --git a/src/renderer/locales/en/core.json b/src/renderer/locales/en/core.jsonindex c6d9e9f59..75f0326c2 100644--- a/src/renderer/locales/en/core.json+++ b/src/renderer/locales/en/core.json@@ -12,8 +12,7 @@"titleAlert": "Alert","aboutTitle": "About TagSpaces","deleteTagGroupContentConfirm": "Do you want to delete the tag group '{{tagGroup}}' ?",- "deleteLocationContentAlert": "Do you want to delete the location '{{locationName}}'?",- "deleteLocationTitleAlert": "Delete Location",+ "deleteLocationContentAlert": "Do you want to remove the location '{{locationName}}'?","renameNewFileName": "New Filename","selectDialogTitle": "Select Folder","selectDialogCurrentPath": "Current Path",