From 46dad112791ae0607a98788ddae322eb25d02c93 Mon Sep 17 00:00:00 2001 From: Vika Date: Mon, 26 Aug 2024 01:08:17 +0300 Subject: Clear tags on post submit --- src/components/post_editor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/components/post_editor.rs') diff --git a/src/components/post_editor.rs b/src/components/post_editor.rs index 86bd91d..534b0dd 100644 --- a/src/components/post_editor.rs +++ b/src/components/post_editor.rs @@ -534,7 +534,7 @@ impl Component for Post Input::SubmitDone(location) => { self.name_buffer.set_text(""); self.summary_buffer.set_text(""); - // TODO: tags + self.tags.guard().clear(); self.content_buffer.set_text(""); let toast = adw::Toast::new("Post submitted"); toast.set_button_label(Some("Open")); -- cgit 1.4.1