diff --git a/apps/client/src/widgets/attribute_widgets/PromotedAttributesDisplay.tsx b/apps/client/src/widgets/attribute_widgets/PromotedAttributesDisplay.tsx index b9c04863f..8a7f8d821 100644 --- a/apps/client/src/widgets/attribute_widgets/PromotedAttributesDisplay.tsx +++ b/apps/client/src/widgets/attribute_widgets/PromotedAttributesDisplay.tsx @@ -2,9 +2,10 @@ import FNote from "../../entities/fnote"; interface PromotedAttributesDisplayProps { note: FNote; + ignoredAttributes?: string[]; } -export default function PromotedAttributesDisplay({ note }: PromotedAttributesDisplayProps) { +export default function PromotedAttributesDisplay({ note, ignoredAttributes }: PromotedAttributesDisplayProps) { const promotedDefinitionAttributes = note.getPromotedDefinitionAttributes(); return ( @@ -15,6 +16,7 @@ export default function PromotedAttributesDisplay({ note }: PromotedAttributesDi const value = note.getLabelValue(name); const friendlyName = def?.promotedAlias ?? name; if (!value) return null; + if (ignoredAttributes && ignoredAttributes.includes(name)) return null; return (
diff --git a/apps/client/src/widgets/collections/board/api.ts b/apps/client/src/widgets/collections/board/api.ts index 90d41d7c4..14ad4d587 100644 --- a/apps/client/src/widgets/collections/board/api.ts +++ b/apps/client/src/widgets/collections/board/api.ts @@ -16,7 +16,7 @@ export default class BoardApi { private byColumn: ColumnMap | undefined, public columns: string[], private parentNote: FNote, - private statusAttribute: string, + readonly statusAttribute: string, private viewConfig: BoardViewData, private saveConfig: (newConfig: BoardViewData) => void, private setBranchIdToEdit: (branchId: string | undefined) => void diff --git a/apps/client/src/widgets/collections/board/card.tsx b/apps/client/src/widgets/collections/board/card.tsx index c71d69afe..3fff79aab 100644 --- a/apps/client/src/widgets/collections/board/card.tsx +++ b/apps/client/src/widgets/collections/board/card.tsx @@ -109,7 +109,7 @@ export default function Card({ title={t("board_view.edit-note-title")} onClick={handleEdit} /> - + ) : (