From a3e8fd374f758a977703931f9ea6a99e8ff215bf Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sun, 24 Aug 2025 23:20:26 +0300 Subject: [PATCH] chore(react/ribbon): port convert to attachment --- .../src/widgets/buttons/note_actions.ts | 34 ------------ apps/client/src/widgets/react/FormList.tsx | 5 +- .../client/src/widgets/ribbon/NoteActions.tsx | 52 ++++++++++++++++++- packages/commons/src/lib/server_api.ts | 6 ++- 4 files changed, 60 insertions(+), 37 deletions(-) diff --git a/apps/client/src/widgets/buttons/note_actions.ts b/apps/client/src/widgets/buttons/note_actions.ts index 069253bfe..0ddd31b30 100644 --- a/apps/client/src/widgets/buttons/note_actions.ts +++ b/apps/client/src/widgets/buttons/note_actions.ts @@ -10,11 +10,6 @@ import { t } from "../../services/i18n.js"; import type FNote from "../../entities/fnote.js"; import type { FAttachmentRow } from "../../entities/fattachment.js"; -// TODO: Deduplicate with server -interface ConvertToAttachmentResponse { - attachment: FAttachmentRow; -} - const TPL = /*html*/`