fix(desktop_icon): show only app and folder as parent_icon
This commit is contained in:
parent
13b93a8bb1
commit
3b9656d7fb
1 changed files with 9 additions and 0 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue