Merge pull request #37286 from sokumon/minor-ui-issues

fix(minor): add tooltip for group sidebar items
This commit is contained in:
Soham Kulkarni 2026-02-20 03:56:55 +05:30 committed by GitHub
commit d4cc080284
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 8 deletions

View file

@ -73,7 +73,7 @@ function get_route(desktop_icon) {
if (workspaces) {
let args = {
type: "workspace",
name: first_link.link_to,
name: workspaces.title,
public: workspaces.public ? 1 : 0,
route_options: {
sidebar: desktop_icon.label,

View file

@ -22,17 +22,18 @@ frappe.ui.SidebarCard = class SidebarCard {
if (!this.icon) {
this.icon = "info";
}
if (this.dismiss_it_for) {
const next_time_for_show = localStorage.getItem(this.get_dismiss_key());
if (next_time_for_show && Date.now() < Number(next_time_for_show)) {
this.hide();
}
}
this.card = $(
frappe.render_template("sidebar_card", {
card: this,
})
);
if (this.dismiss_it_for) {
const next_time_for_show = localStorage.getItem(this.get_dismiss_key());
if (next_time_for_show && Date.now() < Number(next_time_for_show)) {
this.hide();
return;
}
}
if (this.popper) {
this.popper = createPopper($(this.trigger).get(0), $(this.parent).get(0), {
modifiers: [

View file

@ -234,7 +234,6 @@ frappe.ui.sidebar_item.TypeSectionBreak = class SectionBreakSidebarItem extends
} else {
$(me.wrapper.find(".section-break")).addClass("hidden");
$(me.wrapper.find(".divider")).removeClass("hidden");
$(me.wrapper).removeAttr("data-original-title");
me.old_state = me.collapsed;
me.open();
if (me.item.indent) {