TagSpaces is an offline, open source, document manager with tagging support
chore: enable kanban perspective
Ilian Sapundshievd62ed6212fe3
diff --git a/app/perspectives/index.tsx b/app/perspectives/index.tsxindex 4c5614ac8..751cf634c 100644--- a/app/perspectives/index.tsx+++ b/app/perspectives/index.tsx@@ -74,7 +74,7 @@ export const KanbanPerspectiveMeta = {id: PerspectiveIDs.KANBAN,key: 'openKanbanPerspective',pro: true,- beta: true,+ beta: false,icon: <KanbanPerspectiveIcon />,title: 'Kanban Perspective'};diff --git a/app/services/utils-io.ts b/app/services/utils-io.tsindex 3ecad00d8..433978f38 100644--- a/app/services/utils-io.ts+++ b/app/services/utils-io.ts@@ -307,7 +307,10 @@ export function prepareDirectoryContent();}-export function orderDirectories(directories, metaArray: Array<TS.OrderVisibilitySettings>) {+export function orderDirectories(+ directories,+ metaArray: Array<TS.OrderVisibilitySettings>+) {// if (sortBy === 'custom') {try {// const metaDirData = await loadMetaDataPromise(currentLocationPath);@@ -340,7 +343,10 @@ export function orderDirectories(directories, metaArray: Array<TS.OrderVisibilitreturn directories;}-export function orderByMetaArray(arr, metaArray: Array<TS.OrderVisibilitySettings>) {+export function orderByMetaArray(+ arr,+ metaArray: Array<TS.OrderVisibilitySettings>+) {const arrLength = arr.length;return arr.sort((a, b) => {let indexA = metaArray.findIndex(metaFiles => metaFiles.name === a.name);@@ -1255,8 +1261,8 @@ function mergeTags(oldTagsArray: Array<TS.Tag>, newTagsArray: Array<TS.Tag>) {if (newTagsArray.length === 0) {return oldTagsArray;}- const uniqueTags = newTagsArray.filter(newTag =>- !oldTagsArray.some(oldTag => oldTag.title === newTag.title)+ const uniqueTags = newTagsArray.filter(+ newTag => !oldTagsArray.some(oldTag => oldTag.title === newTag.title));return [...oldTagsArray, ...uniqueTags];}