TagSpaces is an offline, open source, document manager with tagging support
fix: issue with audio recording buttons in the lite version
Ilian Sapundshievecb8ed131bfc
diff --git a/app/components/MobileNavigation.tsx b/app/components/MobileNavigation.tsxindex 8c04fd6ac..32af8c56d 100644--- a/app/components/MobileNavigation.tsx+++ b/app/components/MobileNavigation.tsx@@ -287,6 +287,7 @@ function MobileNavigation(props: Props) {<MenuItemkey="createNewAudio"data-tid="createNewAudioTID"+ disabled={!Pro}onClick={() => {dispatch(AppActions.toggleNewAudioDialog());setOpenCreateMenu(false);diff --git a/app/components/dialogs/components/CreateDirectory.tsx b/app/components/dialogs/components/CreateDirectory.tsxindex dc554aae0..7a365f48f 100644--- a/app/components/dialogs/components/CreateDirectory.tsx+++ b/app/components/dialogs/components/CreateDirectory.tsx@@ -36,6 +36,8 @@ import FileUploadContainer, {import { useTranslation } from 'react-i18next';import { useIOActionsContext } from '-/hooks/useIOActionsContext';import { useNotificationContext } from '-/hooks/useNotificationContext';+import { Pro } from '-/pro';+import { BetaLabel, ProLabel } from '-/components/HelperComponents';const PREFIX = 'CreateDirectory';@@ -198,15 +200,16 @@ function CreateDirectory(props: Props) {<Grid style={{ marginTop: 20 }} item xs={12}><Buttonvariant="outlined"+ disabled={!Pro || noSuitableLocation}onClick={() => {onClose();dispatch(AppActions.toggleNewAudioDialog());}}className={classes.createButton}data-tid={tid('newSubDirTID')}- disabled={noSuitableLocation}>{t('core:newAudioRecording')}+ {Pro ? <BetaLabel /> : <ProLabel />}</Button></Grid><Grid style={{ marginTop: 20 }} item xs={12}>diff --git a/app/perspectives/common/DirectoryMenuItems.tsx b/app/perspectives/common/DirectoryMenuItems.tsxindex 61eee848a..02f4ab461 100644--- a/app/perspectives/common/DirectoryMenuItems.tsx+++ b/app/perspectives/common/DirectoryMenuItems.tsx@@ -212,11 +212,12 @@ export function getDirectoryMenuItems(</MenuItem>,);}- if (Pro && createNewAudio) {+ if (createNewAudio) {menuItems.push(<MenuItemkey="createNewAudio"data-tid="createNewAudioTID"+ disabled={!Pro}onClick={() => {onClose();createNewAudio();