fix(desktop_icon): show only app and folder as parent_icon

This commit is contained in:
sokumon 2025-11-07 10:05:02 +05:30
parent 13b93a8bb1
commit 3b9656d7fb

View file

@ -2,6 +2,15 @@
// For license information, please see license.txt
frappe.ui.form.on("Desktop Icon", {
setup: function (frm) {
frm.set_query("parent_icon", function () {
return {
filters: {
icon_type: ["in", ["Folder", "App"]],
},
};
});
},
refresh: function (frm) {
if (frm.doc.link_to && frm.doc.link_type) {
frm.add_custom_button(