Merge pull request #35519 from sokumon/desktop-fixes

This commit is contained in:
Soham Kulkarni 2025-12-30 02:12:27 +05:30 committed by GitHub
commit 0875dc2f6e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View file

@ -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");

View file

@ -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>
{% } %}