From a5db5298a03a30534c3a6072d5dd7fc1d7493ea5 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Thu, 17 Jul 2025 19:44:34 +0300 Subject: [PATCH] feat(views/table): integrate depth limit into collection properties --- .../widgets/ribbon_widgets/book_properties.ts | 16 ++++++++++++++++ .../ribbon_widgets/book_properties_config.ts | 18 +++++++++++++++--- 2 files changed, 31 insertions(+), 3 deletions(-) diff --git a/apps/client/src/widgets/ribbon_widgets/book_properties.ts b/apps/client/src/widgets/ribbon_widgets/book_properties.ts index 39c4e92b2..13df6ce47 100644 --- a/apps/client/src/widgets/ribbon_widgets/book_properties.ts +++ b/apps/client/src/widgets/ribbon_widgets/book_properties.ts @@ -168,6 +168,22 @@ export default class BookPropertiesWidget extends NoteContextAwareWidget { }); $container.append($button); break; + case "number": + const $numberInput = $("", { + type: "number", + class: "form-control form-control-sm", + value: note.getLabelValue(property.bindToLabel) || "", + }); + $numberInput.on("change", () => { + const value = $numberInput.val(); + if (value === "") { + attributes.removeOwnedLabelByName(note, property.bindToLabel); + } else { + attributes.setLabel(note.noteId, property.bindToLabel, String(value)); + } + }); + $container.append($("