chore: converted preferences editor to live component

This commit is contained in:
2026-05-03 09:19:27 +02:00
parent 6c7fde6b95
commit ce54e973ad
6 changed files with 255 additions and 192 deletions

View File

@@ -388,11 +388,16 @@
<% @current_tab.type == :media and @media_editor -> %>
<MediaEditor.media_editor media_editor={@media_editor} />
<% @current_tab.type == :settings and @settings_editor -> %>
<SettingsEditor.settings_editor settings_editor={@settings_editor} />
<% @current_tab.type == :style and @style_editor -> %>
<SettingsEditor.style_editor style_editor={@style_editor} />
<% @current_tab.type in [:settings, :style] and @current_project -> %>
<.live_component module={SettingsEditor} id="settings-editor"
project_id={@current_project.id}
current_project={@current_project}
projects={@projects}
workbench={@workbench}
current_tab={@current_tab}
tab_meta={@tab_meta}
offline_mode={@offline_mode}
/>
<% @current_tab.type == :menu_editor and @menu_editor -> %>
<MenuEditor.menu_editor menu_editor={@menu_editor} />