╭ changed ───────────────╮ │src/ui/widget/thread.zig│ ╰────────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1278 const route = listRoute(self.data.identity, @enumFromInt(0), "", entry.id) orelse return error.RouteTooLong; │ │1279 row.getFocus().kind = .{ .custom = try std.fmt.allocPrint(pa, "form:{s}/post", .{try route.toUrl(self.session.page_arena)}) };│ │1280 try addToolButton(allocator, row, "post", "submit"); │ │1281 + } │ │1282 + if (self.session.data.user_id != null) { │ │1283 + const route = ui.RoutablePage.repoThreadRemoveRoute(kind, self.data.identity, entry.id, "") orelse return error.RouteTooLong; │ │1284 + try addToolButton(allocator, row, "✕", try std.fmt.allocPrint(pa, "a:{s}", .{try route.toUrl(self.session.page_arena)})); │ │1285 } │ │1286 if (row.children.count() > first_in_row_index) │ │1287 row.getFocus().child_id = row.children.keys()[first_in_row_index]; │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │2337 │ │2338 fn removeEvent(self: *This, allocator: std.mem.Allocator, event_kind: evt.EventKind, id: [evt.event_id_size]u8) !void {│ │2339 if (comptime wasm) return; │ │2340 + │ │2341 + if (comptime supports_drafts) { │ │2342 + const selected = self.data.selectedThread() orelse return; │ │2343 + if (event_kind == kind and entryDraft(selected.*)) { │ │2344 + try Data.removeDraft(self.session, allocator, &id); │ │2345 + const route = draftsRoute(self.data.identity) orelse return; │ │2346 + try self.session.navigate(route); │ │2347 + return; │ │2348 + } │ │2349 + } │ │2350 + │ │2351 const io = self.session.io orelse return; │ │2352 const src = self.data.repo_source orelse return; │ │2353 const author = (try self.session.eventAuthor()) orelse return; │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯