TagSpaces is an offline, open source, document manager with tagging support
feat: making smart tag deactivatable in the UI
Ilian Sapundshievff9d733e7088
diff --git a/app/components/TagLibrary.tsx b/app/components/TagLibrary.tsxindex 586f651ab..7ad188681 100644--- a/app/components/TagLibrary.tsx+++ b/app/components/TagLibrary.tsx@@ -65,6 +65,7 @@ import {} from '../reducers/app';import SmartTags from '../reducers/smart-tags';import { FileSystemEntry } from '-/services/utils-io';+import { AppConfig } from '-/config';const isTagLibraryReadOnly =window.ExtTagLibrary && window.ExtTagLibrary.length > 0;@@ -419,9 +420,11 @@ class TagLibrary extends React.Component<Props, State> {className={classes.taggroupsArea}data-tid="tagLibraryTagGroupList">- <List style={{ paddingTop: 0, paddingBottom: 0 }}>- {SmartTags(i18n).map(this.renderTagGroup)}- </List>+ {AppConfig.showSmartTags && (+ <List style={{ paddingTop: 0, paddingBottom: 0 }}>+ {SmartTags(i18n).map(this.renderTagGroup)}+ </List>+ )}<List style={{ paddingTop: 0 }}>{tagGroups.map(this.renderTagGroup)}</List>diff --git a/app/config.ts b/app/config.tsindex c7277af9f..cd678d194 100644--- a/app/config.ts+++ b/app/config.ts@@ -103,6 +103,10 @@ export const AppConfig = {(window as any).ExtShowAdvancedSearch !== undefined? (window as any).ExtShowAdvancedSearch: true,+ showSmartTags:+ (window as any).ExtShowSmartTags !== undefined+ ? (window as any).ExtShowSmartTags+ : true,showWelcomePanel:(window as any).ExtShowWelcomePanel !== undefined? (window as any).ExtShowWelcomePanel