chore: converted preferences editor to live component
This commit is contained in:
@@ -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} />
|
||||
|
||||
Reference in New Issue
Block a user