Skip to content

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

add isNotEditable in Location Model (#1336)

Stanimir5b14469026d0
diff --git a/app/components/LocationView.tsx b/app/components/LocationView.tsx
index 253cdcc33..cc070f785 100644
--- a/app/components/LocationView.tsx
+++ b/app/components/LocationView.tsx
@@ -301,7 +301,7 @@ const LocationView = React.memo((props: Props) => {
</div>
</TargetMoveFileBox>
)}
- {!AppConfig.locationsReadOnly && (
+ {!AppConfig.locationsReadOnly && !location.isNotEditable && (
<ListItemSecondaryAction>
<IconButton
aria-label={i18n.t('core:options')}
diff --git a/app/reducers/locations.ts b/app/reducers/locations.ts
index 8b36c4172..6866d0ac3 100644
--- a/app/reducers/locations.ts
+++ b/app/reducers/locations.ts
@@ -53,6 +53,7 @@ export type Location = {
creationDate?: string;
isDefault: boolean;
isReadOnly?: boolean;
+ isNotEditable?: boolean;
watchForChanges?: boolean;
persistIndex?: boolean;
fullTextIndex?: boolean;