{dirent.type !== 'file' ? (
-
+
) : (
)}
@@ -141,6 +148,13 @@ DirentDetails.propTypes = {
onFileTagChanged: PropTypes.func.isRequired,
repoTags: PropTypes.array,
fileTags: PropTypes.array,
+ enableMetadata: PropTypes.bool,
+ enableFaceRecognition: PropTypes.bool,
+ detailsSettings: PropTypes.object,
+ tagsData: PropTypes.object,
+ addTag: PropTypes.func,
+ modifyDetailsSettings: PropTypes.func,
+ modifyLocalFileTags: PropTypes.func,
};
export default DirentDetails;
diff --git a/frontend/src/components/dirent-detail/embedded-file-details/index.js b/frontend/src/components/dirent-detail/embedded-file-details/index.js
index d0fbf4b598..3aa500b0c8 100644
--- a/frontend/src/components/dirent-detail/embedded-file-details/index.js
+++ b/frontend/src/components/dirent-detail/embedded-file-details/index.js
@@ -11,6 +11,7 @@ import { MetadataDetailsProvider } from '../../../metadata/hooks';
import AIIcon from '../../../metadata/components/metadata-details/ai-icon';
import SettingsIcon from '../../../metadata/components/metadata-details/settings-icon';
import Loading from '../../loading';
+import { useTags } from '../../../tag/hooks';
import './index.css';
@@ -21,6 +22,8 @@ const EmbeddedFileDetails = ({ repoID, repoInfo, dirent, path, onClose, width =
const [direntDetail, setDirentDetail] = useState('');
const [isFetching, setIsFetching] = useState(true);
+ const { tagsData, addTag } = useTags();
+
const isView = useMemo(() => {
const urlParams = new URLSearchParams(window.location.search);
return urlParams.has('view');
@@ -87,7 +90,15 @@ const EmbeddedFileDetails = ({ repoID, repoInfo, dirent, path, onClose, width =
:
dirent && direntDetail && (
-
+ {}}
+ />
)}