Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit 6d9974d

Browse files
committed
relation with tags as source controlled
1 parent fb1052d commit 6d9974d

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/components/cellTypes/RelationCell.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ const RelationCell = (mdProps: CellComponentProps) => {
103103
getAlignmentClassname(
104104
tableColumn.config,
105105
configInfo.getLocalSettings(),
106-
["tabIndex"]
106+
["tabIndex", "tags-container"]
107107
)
108108
)}
109109
tabIndex={0}

src/stateManagement/data/handlers/DataviewUpdaterHandlerAction.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export default class DataviewUpdaterHandlerAction extends AbstractTableAction<Da
5050
break;
5151
}
5252
case DATAVIEW_UPDATER_OPERATIONS.UPDATE: {
53-
if (updaterData.isActive) {
53+
if (updaterData.isActive && isFileInDDBB) {
5454
LOGGER.info(`Refreshing File "${updaterData.file}" is ignored due to active file update.`);
5555
return updater;
5656
}
@@ -83,11 +83,17 @@ export default class DataviewUpdaterHandlerAction extends AbstractTableAction<Da
8383
}
8484

8585
private checkIfFileIsInSource(file: TFile, view: DatabaseView): boolean {
86+
const cachedFile = app.metadataCache.getFileCache(file);
8687
switch (view.diskConfig.yaml.config.source_data) {
8788
case SourceDataTypes.CURRENT_FOLDER:
8889
return file.parent.path.startsWith(view.file.parent.path);
8990
case SourceDataTypes.CURRENT_FOLDER_WITHOUT_SUBFOLDERS:
9091
return file.parent.path === view.file.parent.path;
92+
case SourceDataTypes.TAG:
93+
return cachedFile.tags
94+
?.some((tagCache) =>
95+
tagCache.tag === view.diskConfig.yaml.config.source_form_result
96+
);
9197
}
9298
return true;
9399
}

0 commit comments

Comments
 (0)