fix: fixed CSM-017

This commit is contained in:
2026-05-09 17:33:51 +02:00
parent e4452ca504
commit 5c17751d55
15 changed files with 463 additions and 301 deletions

View File

@@ -11,6 +11,7 @@ defmodule BDS.Desktop.ShellLive.OverlayManager do
alias BDS.Desktop.ShellLive.{
MediaEditor,
Notify,
PostEditor,
TabHelpers
}
@@ -170,7 +171,7 @@ defmodule BDS.Desktop.ShellLive.OverlayManager do
"[#{result.original_name}](bds-media://#{result.media_id})"
end
send(self(), {:post_editor_insert_content, post_id, syntax})
Notify.parent({:post_editor_insert_content, post_id, syntax})
socket
end
@@ -195,7 +196,7 @@ defmodule BDS.Desktop.ShellLive.OverlayManager do
end
if details do
send(self(), {:post_editor_insert_content, post_id, details})
Notify.parent({:post_editor_insert_content, post_id, details})
end
socket
@@ -213,7 +214,7 @@ defmodule BDS.Desktop.ShellLive.OverlayManager do
socket =
case {socket.assigns[:shell_overlay], current_tab} do
{%{kind: :language_picker}, %{type: :post, id: post_id}} ->
send(self(), {:post_editor_translate, post_id, code})
Notify.parent({:post_editor_translate, post_id, code})
socket
{%{kind: :language_picker}, %{type: :media, id: media_id}} ->