Skip to content

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

chore: added tag preview in the edit dialog

Ilian Sapundshievc6b5b5f4b5ea
diff --git a/src/renderer/components/dialogs/EditTagDialog.tsx b/src/renderer/components/dialogs/EditTagDialog.tsx
index 3120c8ad6..4d99c6852 100644
--- a/src/renderer/components/dialogs/EditTagDialog.tsx
+++ b/src/renderer/components/dialogs/EditTagDialog.tsx
@@ -26,6 +26,7 @@ import FormControl from '@mui/material/FormControl';
import FormHelperText from '@mui/material/FormHelperText';
import Dialog from '@mui/material/Dialog';
import ColorPickerDialog from './ColorPickerDialog';
+import TagContainer from '-/components/TagContainer';
import TransparentBackground from '../TransparentBackground';
import TsTextField from '-/components/TsTextField';
import { TS } from '-/tagspaces.namespace';
@@ -140,7 +141,8 @@ function EditTagDialog(props: Props) {
>
<DialogTitle style={{ overflow: 'visible' }}>
{t('core:editTagTitle')}
- {` '${title}'`}
+ {` `}
+ <TagContainer tag={{ title, color, textcolor }} tagMode="display" />
<DialogCloseButton testId="closeEditTagTID" onClose={onClose} />
</DialogTitle>
<DialogContent style={{ overflow: 'visible' }}>