From c5ffc2882b3d5210c2c3da11584cef244f9793c5 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sat, 19 Jul 2025 19:57:02 +0300 Subject: [PATCH] feat(views/board): react to changes --- apps/client/src/widgets/view_widgets/board_view/index.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/apps/client/src/widgets/view_widgets/board_view/index.ts b/apps/client/src/widgets/view_widgets/board_view/index.ts index 33f61a632..e6d2ba1f5 100644 --- a/apps/client/src/widgets/view_widgets/board_view/index.ts +++ b/apps/client/src/widgets/view_widgets/board_view/index.ts @@ -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*/`
@@ -295,4 +296,12 @@ export default class BoardView extends ViewMode { $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; + } + }