Merge pull request #37286 from sokumon/minor-ui-issues
fix(minor): add tooltip for group sidebar items
This commit is contained in:
commit
d4cc080284
3 changed files with 8 additions and 8 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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: [
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue