From b20ffdf7db72066d8ed5688f21bd836bb57c0b94 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Thu, 21 Aug 2025 15:05:55 +0300 Subject: [PATCH] chore(react/note_icon): sort by count --- apps/client/src/widgets/note_icon.ts.bak | 28 ------------------------ apps/client/src/widgets/note_icon.tsx | 13 ++++++++++- 2 files changed, 12 insertions(+), 29 deletions(-) diff --git a/apps/client/src/widgets/note_icon.ts.bak b/apps/client/src/widgets/note_icon.ts.bak index e71a6b83c..52ff60247 100644 --- a/apps/client/src/widgets/note_icon.ts.bak +++ b/apps/client/src/widgets/note_icon.ts.bak @@ -25,21 +25,6 @@ export default class NoteIconWidget extends NoteContextAwareWidget { await attributeService.setLabel(this.noteId, this.note.hasOwnedLabel("workspace") ? "workspaceIconClass" : "iconClass", clazz); } }); - - this.$iconSearch = this.$widget.find("input[name='icon-search']"); - this.$iconSearch.on("input", () => this.renderDropdown()); - - this.$widget.on("show.bs.dropdown", async () => { - const { categories } = (await import("./icon_list.js")).default; - - this.$iconCategory.empty(); - - for (const category of categories) { - this.$iconCategory.append($("