Skip to content

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

chore: adjusting usability of the LITE version

Ilian Sapundshiev5e6261ed5e06
diff --git a/src/renderer/components/dialogs/CreateTagGroupDialog.tsx b/src/renderer/components/dialogs/CreateTagGroupDialog.tsx
index a305f9e66..d8dee4f36 100644
--- a/src/renderer/components/dialogs/CreateTagGroupDialog.tsx
+++ b/src/renderer/components/dialogs/CreateTagGroupDialog.tsx
@@ -224,10 +224,12 @@ function CreateTagGroupDialog(props: Props) {
<ListItem style={{ paddingLeft: 0, paddingRight: 0 }}>
<TsSelect
data-tid="tagGroupLocationTID"
+ disabled={!Pro}
label={
<>
{t('core:tagGroupLocation')}
<InfoIcon tooltip={t('tagGroupLocationHelp')} />
+ <ProLabel />
</>
}
defaultValue={defaultTagGroupLocation}
diff --git a/src/renderer/components/dialogs/EditTagGroupDialog.tsx b/src/renderer/components/dialogs/EditTagGroupDialog.tsx
index 5e05f19af..f018598b6 100644
--- a/src/renderer/components/dialogs/EditTagGroupDialog.tsx
+++ b/src/renderer/components/dialogs/EditTagGroupDialog.tsx
@@ -212,10 +212,12 @@ function EditTagGroupDialog(props: Props) {
<ListItem style={{ paddingLeft: 0, paddingRight: 0 }}>
<TsSelect
fullWidth
+ disabled={!Pro}
label={
<>
{t('core:tagGroupLocation')}
<InfoIcon tooltip={t('tagGroupLocationHelp')} />
+ <ProLabel />
</>
}
defaultValue={
diff --git a/src/renderer/components/dialogs/components/SettingsGeneral.tsx b/src/renderer/components/dialogs/components/SettingsGeneral.tsx
index afc2dd70b..0c02f6b53 100644
--- a/src/renderer/components/dialogs/components/SettingsGeneral.tsx
+++ b/src/renderer/components/dialogs/components/SettingsGeneral.tsx
@@ -883,7 +883,7 @@ function SettingsGeneral() {
/>
<Switch
data-tid="saveTagInLocationTID"
- disabled={window.ExtUseLocationTags !== undefined}
+ disabled={!Pro || window.ExtUseLocationTags !== undefined}
onClick={() => {
Pro && setSaveTagInLocation(!settings.saveTagInLocation);
}}