TagSpaces is an offline, open source, document manager with tagging support
chore: small adjustments
Ilian Sapundshievca4735978dc3
diff --git a/src/renderer/components/TagsSelect.tsx b/src/renderer/components/TagsSelect.tsxindex 736efde35..148a653b1 100644--- a/src/renderer/components/TagsSelect.tsx+++ b/src/renderer/components/TagsSelect.tsx@@ -98,7 +98,10 @@ function TagsSelect(props: Props) {tags = [],tagMode,handleNewTags,+ handleChange,generateButton,+ tagSearchType,+ dataTid,} = props;useEffect(() => {@@ -122,7 +125,7 @@ function TagsSelect(props: Props) {handleNewTags([]);}if (reason === 'selectOption') {- props.handleChange(props.tagSearchType, selectedTags, reason);+ handleChange(tagSearchType, selectedTags, reason);} else if (reason === 'createOption') {if (selectedTags && selectedTags.length) {const newTags = parseTagsInput(@@ -130,12 +133,12 @@ function TagsSelect(props: Props) {);selectedTags.pop();const allNewTags = [...selectedTags, ...newTags];- props.handleChange(props.tagSearchType, allNewTags, reason);+ handleChange(tagSearchType, allNewTags, reason);}} else if (reason === 'remove-value') {- props.handleChange(props.tagSearchType, selectedTags, reason);+ handleChange(tagSearchType, selectedTags, reason);} else if (reason === 'clear') {- props.handleChange(props.tagSearchType, [], reason);+ handleChange(tagSearchType, [], reason);}}} else {@@ -202,7 +205,7 @@ function TagsSelect(props: Props) {return (<Box sx={{ flexGrow: 1 }}><Autocomplete- data-tid={props.dataTid}+ data-tid={dataTid}disabled={currentLocation?.isReadOnly}multipleoptions={!currentLocation?.isReadOnly ? allTags.current : []}diff --git a/src/renderer/components/dialogs/EditEntryTagDialog.tsx b/src/renderer/components/dialogs/EditEntryTagDialog.tsxindex 755b7f837..a6fe889bc 100644--- a/src/renderer/components/dialogs/EditEntryTagDialog.tsx+++ b/src/renderer/components/dialogs/EditEntryTagDialog.tsx@@ -125,7 +125,7 @@ function EditEntryTagDialog({ open, entries, tag, onClose }: Props) {return (<DialogContentdata-tid="editEntryTagDialog"- sx={{ overflow: 'auto', minWidth: '545px' }}+ sx={{ overflow: 'auto', minWidth: '300px' }}><FormControl fullWidth error={haveError('tag')}><TsTextField