mirror of
https://github.com/zadam/trilium.git
synced 2025-10-29 10:39:00 +01:00
feat(views/board): react to changes
This commit is contained in:
parent
765691751a
commit
c5ffc2882b
@ -2,6 +2,7 @@ import { setupHorizontalScrollViaWheel } from "../../widget_utils";
|
||||
import ViewMode, { ViewModeArgs } from "../view_mode";
|
||||
import { getBoardData } from "./data";
|
||||
import attributeService from "../../../services/attributes";
|
||||
import { EventData } from "../../../components/app_context";
|
||||
|
||||
const TPL = /*html*/`
|
||||
<div class="board-view">
|
||||
@ -295,4 +296,12 @@ export default class BoardView extends ViewMode<StateInfo> {
|
||||
$dropIndicator.addClass("show");
|
||||
}
|
||||
|
||||
async onEntitiesReloaded({ loadResults }: EventData<"entitiesReloaded">) {
|
||||
if (loadResults.getAttributeRows().some(attr => attr.name === "status" && this.noteIds.includes(attr.noteId!))) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user