Skip to content

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

chore: changing the perspective name from treeviz to folderviz

Ilian Sapundshievd0066a732a57
diff --git a/src/renderer/components/RenderPerspective.tsx b/src/renderer/components/RenderPerspective.tsx
index 77dad163d..39e634c94 100644
--- a/src/renderer/components/RenderPerspective.tsx
+++ b/src/renderer/components/RenderPerspective.tsx
@@ -113,15 +113,15 @@ function KanBanPerspectiveAsync(props) {
);
}
-let TreeVizPerspective = React.Fragment;
-if (Pro && Pro.Perspectives && Pro.Perspectives.TreeVizPerspective) {
- TreeVizPerspective = Pro.Perspectives.TreeVizPerspective;
+let FolderVizPerspective = React.Fragment;
+if (Pro && Pro.Perspectives && Pro.Perspectives.FolderVizPerspective) {
+ FolderVizPerspective = Pro.Perspectives.FolderVizPerspective;
}
-function TreeVizPerspectiveAsync(props) {
+function FolderVizPerspectiveAsync(props) {
return (
<React.Suspense fallback={<LoadingLazy />}>
<ThumbGenerationContextProvider>
- <TreeVizPerspective {...props} />
+ <FolderVizPerspective {...props} />
</ThumbGenerationContextProvider>
</React.Suspense>
);
@@ -181,8 +181,8 @@ function RenderPerspective(props: Props) {
<KanBanPerspectiveAsync openRenameEntryDialog={openRenameEntryDialog} />
);
}
- if (Pro && currentPerspective === PerspectiveIDs.TREEVIZ) {
- return <TreeVizPerspective />;
+ if (Pro && currentPerspective === PerspectiveIDs.FOLDERVIZ) {
+ return <FolderVizPerspectiveAsync />;
}
return <GridPerspectiveAsync openRenameEntryDialog={openRenameEntryDialog} />;
diff --git a/src/renderer/perspectives/index.tsx b/src/renderer/perspectives/index.tsx
index c1b312449..de334253e 100644
--- a/src/renderer/perspectives/index.tsx
+++ b/src/renderer/perspectives/index.tsx
@@ -21,14 +21,14 @@ import MapiquePerspectiveIcon from '@mui/icons-material/Map';
import GalleryPerspectiveIcon from '@mui/icons-material/Camera';
import ListPerspectiveIcon from '@mui/icons-material/ViewList';
import GridPerspectiveIcon from '@mui/icons-material/ViewModule';
-import TreeVizPerspectiveIcon from '@mui/icons-material/ForestRounded';
+import FolderVizPerspectiveIcon from '@mui/icons-material/ForestRounded';
export const PerspectiveIDs = {
UNSPECIFIED: 'unspecified',
GRID: 'grid',
LIST: 'list',
GALLERY: 'gallery',
- TREEVIZ: 'treeviz',
+ FOLDERVIZ: 'folderviz',
MAPIQUE: 'mapique',
KANBAN: 'kanban',
// WIKI: 'wiki'
@@ -81,13 +81,13 @@ export const GalleryPerspectiveMeta = {
title: 'Gallery Perspective',
};
-export const TreeVizPerspectiveMeta = {
- id: PerspectiveIDs.TREEVIZ,
- key: 'openTreeVizPerspective',
+export const FolderVizPerspectiveMeta = {
+ id: PerspectiveIDs.FOLDERVIZ,
+ key: 'openFolderVizPerspective',
pro: true,
beta: true,
- icon: <TreeVizPerspectiveIcon />,
- title: 'TreeViz Perspective',
+ icon: <FolderVizPerspectiveIcon />,
+ title: 'FolderViz Perspective',
};
export const AvailablePerspectives = [];
@@ -96,5 +96,5 @@ AvailablePerspectives.push(ListPerspectiveMeta);
AvailablePerspectives.push(GalleryPerspectiveMeta);
AvailablePerspectives.push(MapiquePerspectiveMeta);
AvailablePerspectives.push(KanbanPerspectiveMeta);
-AvailablePerspectives.push(TreeVizPerspectiveMeta);
+AvailablePerspectives.push(FolderVizPerspectiveMeta);
// AvailablePerspectives.push(WikiPerspectiveMeta);