feat: remove the post duplication feature (closes #10)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-18 22:55:37 +02:00
parent a2e2ab037d
commit 4222c480cb
10 changed files with 1 additions and 157 deletions

View File

@@ -347,7 +347,6 @@ pub enum PostEditorMsg {
RemoveCategory(String),
Save,
Publish,
Duplicate,
Discard,
Delete,
InsertLink,
@@ -412,19 +411,6 @@ pub fn view<'a>(
.padding([6, 16])
.into(),
];
if !on_translation {
header_action_items.push(
button(
text(t(locale, "editor.duplicate"))
.size(13)
.shaping(Shaping::Advanced),
)
.on_press(Message::PostEditor(PostEditorMsg::Duplicate))
.padding([6, 16])
.style(inputs::secondary_button)
.into(),
);
}
if state.status == PostStatus::Draft {
header_action_items.push(
button(