fix: remove help from desktop
This commit is contained in:
parent
0887df7f98
commit
9f70908c25
2 changed files with 16 additions and 13 deletions
|
|
@ -23,12 +23,12 @@
|
|||
</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="flex " style="gap:12px; align-items: center;">
|
||||
<div class="flex" style="gap:16px; align-items: center;">
|
||||
<div class="desktop-notifications">
|
||||
<div class="dropdown dropdown-notifications">
|
||||
<button class="btn-reset nav-link text-muted" data-toggle="dropdown" >
|
||||
<svg
|
||||
class="icon icon-sm"
|
||||
class="icon icon-md"
|
||||
>
|
||||
<use href="#icon-bell"></use>
|
||||
</svg>
|
||||
|
|
@ -50,9 +50,6 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<button class="btn-reset nav-link help-dropdown d-none d-sm-block d-md-block d-lg-block" aria-controls="toolbar-help" aria-label="Help Dropdown"> <span> Help <svg class="es-icon icon-xs"><use href="#es-line-down"></use></svg> </span> </button>
|
||||
<div class="desktop-avatar">
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -214,7 +214,6 @@ class DesktopPage {
|
|||
|
||||
setup() {
|
||||
this.setup_avatar();
|
||||
this.setup_help();
|
||||
this.setup_notifications();
|
||||
this.setup_navbar();
|
||||
this.setup_awesomebar();
|
||||
|
|
@ -311,13 +310,6 @@ class DesktopPage {
|
|||
full_height: false,
|
||||
});
|
||||
}
|
||||
setup_help() {
|
||||
frappe.ui.create_menu({
|
||||
parent: $(".help-dropdown"),
|
||||
menu_items: frappe.utils.get_help_siblings(),
|
||||
open_on_left: true,
|
||||
});
|
||||
}
|
||||
setup_avatar() {
|
||||
$(".desktop-avatar").html(frappe.avatar(frappe.session.user, "avatar-medium"));
|
||||
let is_dark = document.documentElement.getAttribute("data-theme") === "dark";
|
||||
|
|
@ -334,6 +326,20 @@ class DesktopPage {
|
|||
new frappe.ui.ThemeSwitcher().show();
|
||||
},
|
||||
},
|
||||
{
|
||||
icon: "info",
|
||||
label: "About",
|
||||
onClick: function () {
|
||||
return frappe.ui.toolbar.show_about();
|
||||
},
|
||||
},
|
||||
{
|
||||
icon: "support",
|
||||
label: "Frappe Support",
|
||||
onClick: function () {
|
||||
window.open("https://support.frappe.io/help", "_blank");
|
||||
},
|
||||
},
|
||||
{
|
||||
icon: "rotate-ccw",
|
||||
label: "Reset to Default",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue