fix: Bind user profile "show" to page "show"

This commit is contained in:
Suraj Shetty 2020-12-18 17:55:38 +05:30
parent e1e8a36853
commit f75b2c98bc

View file

@ -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();
});
});
};