fix: Bind user profile "show" to page "show"
This commit is contained in:
parent
e1e8a36853
commit
f75b2c98bc
1 changed files with 6 additions and 3 deletions
|
|
@ -1,9 +1,12 @@
|
|||
frappe.pages['user-profile'].on_page_load = function (wrapper) {
|
||||
frappe.ui.make_app_page({
|
||||
parent: wrapper,
|
||||
});
|
||||
frappe.require('assets/js/user_profile_controller.min.js', () => {
|
||||
frappe.ui.make_app_page({
|
||||
parent: wrapper,
|
||||
});
|
||||
let user_profile = new frappe.ui.UserProfile(wrapper);
|
||||
user_profile.show();
|
||||
$(wrapper).bind('show', () => {
|
||||
user_profile.show();
|
||||
});
|
||||
});
|
||||
};
|
||||
Loading…
Add table
Reference in a new issue