feat: Replace sidebar menu logo and update configuration settings layout

This commit is contained in:
Altahir Hassan 2026-01-07 01:04:27 +04:00
parent 3a4691d3be
commit d3623bf5f7
4 changed files with 11 additions and 25 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

View File

@ -116,7 +116,7 @@ export class SidebarMenu extends Component {
}
// Load sidebar menu icon URL
this.state.sidebarMenuIconUrl = result.sidebar_icon_url || '/odex_sidebar_backend_theme2/static/src/img/logo1.png';
this.state.sidebarMenuIconUrl = result.sidebar_icon_url || '/odex_sidebar_backend_theme2/static/src/img/logo.webp';
} catch (error) {
console.error('Error loading sidebar setting:', error);

View File

@ -9,31 +9,17 @@
<app data-string="Odex Sidebar Menu" string="Odex Sidebar Menu"
name="odex_sidebar_backend_theme2">
<block title="Odex Sidebar Menu" name="odex_sidebar_settings_block">
<setting help="Enable or disable the sidebar menu in the backend interface">
<field name="sidebar_menu_enable" />
</setting>
<setting help="Enable or disable the top navigation bar menu section in the backend interface">
<field name="disable_nav_menu_section" />
</setting>
<setting>
<div class="content-group">
<div class="row mt16">
<label for="sidebar_menu_enable" />
<div class="text-muted">
Enable or disable the sidebar menu in the backend
interface
</div>
<field name="sidebar_menu_enable" />
</div>
<div class="row mt16">
<label for="disable_nav_menu_section" />
<div class="text-muted">
Enable or disable the top navigation bar menu section
in the backend interface
</div>
<field name="disable_nav_menu_section" />
</div>
<div class="row mt16">
<label for="sidebar_menu_icon" />
<field name="sidebar_menu_icon" widget="image"
options="{'size': [128, 128]}"/>
</div>
</div>
<group>
<field name="sidebar_menu_icon" widget="image"
options="{'size': [128, 128]}"/>
</group>
</setting>
</block>
</app>