Merge pull request #34998 from iamejaaz/awesomebar-fixes
fix(awesomebar): add icon for recent items
This commit is contained in:
commit
3ad691c47d
3 changed files with 7 additions and 2 deletions
|
|
@ -47,7 +47,7 @@ frappe.search.AwesomeBar = class AwesomeBar {
|
|||
<span class="help-item">${frappe.utils.icon("corner-down-left")}</span>
|
||||
<span>${__("to select")}</span>
|
||||
</span>
|
||||
<span class="help-item">${__("esc")}</span>
|
||||
<span class="help-item help-item-esc">${__("esc")}</span>
|
||||
<span>${__("to close")}</span>
|
||||
</div>
|
||||
<div class="pointer">${frappe.utils.icon("circle-question-mark")}</div>
|
||||
|
|
|
|||
|
|
@ -108,7 +108,9 @@ frappe.search.utils = {
|
|||
out.label = icon + __(view_name.bold()) + " " + labelSuffix;
|
||||
out.value = __(view_name) + " " + labelSuffix;
|
||||
} else if (match[0]) {
|
||||
out.label = frappe.utils.escape_html(match[0]).bold();
|
||||
out.label =
|
||||
me.make_icon(me.recent ? "circle-dashed" : "file-text") +
|
||||
frappe.utils.escape_html(match[0]).bold();
|
||||
out.value = match[0];
|
||||
} else {
|
||||
console.log("Illegal match", match);
|
||||
|
|
|
|||
|
|
@ -140,6 +140,9 @@
|
|||
margin-right: 0.25rem;
|
||||
border-radius: 4px;
|
||||
}
|
||||
.help-item-esc {
|
||||
padding: 2px 4px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue