Merge pull request #35519 from sokumon/desktop-fixes
This commit is contained in:
commit
0875dc2f6e
2 changed files with 2 additions and 3 deletions
|
|
@ -617,7 +617,6 @@ class DesktopIconGrid {
|
|||
class DesktopIcon {
|
||||
constructor(icon, in_folder) {
|
||||
this.icon_data = icon;
|
||||
this.icon_data.label = __(this.icon_data.label);
|
||||
this.icon_title = this.icon_data.label;
|
||||
this.icon_subtitle = "";
|
||||
this.icon_type = this.icon_data.icon_type;
|
||||
|
|
@ -817,7 +816,7 @@ class DesktopModal {
|
|||
}
|
||||
make_modal(icon_title) {
|
||||
if ($(".desktop-modal").length == 0) {
|
||||
this.modal = new frappe.get_modal(icon_title, "");
|
||||
this.modal = new frappe.get_modal(__(icon_title), "");
|
||||
this.modal.find(".modal-header").addClass("desktop-modal-heading");
|
||||
this.modal.addClass("desktop-modal");
|
||||
this.modal.find(".modal-dialog").attr("id", "desktop-modal");
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
{% } %}
|
||||
{% if (!in_folder) { %}
|
||||
<div class="icon-caption">
|
||||
<div class="icon-title">{{ icon.label }}</div>
|
||||
<div class="icon-title">{{ __(icon.label) }}</div>
|
||||
<div class="icon-subtitle"></div>
|
||||
</div>
|
||||
{% } %}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue