[hub][feat] Edit your Profile, recycle profile dialog
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
const ProfileDialog = (title = __('Edit Profile'), action={}) => {
|
||||
const ProfileDialog = (title = __('Edit Profile'), action={}, initial_values={}) => {
|
||||
const fields = [
|
||||
{
|
||||
fieldtype: 'Link',
|
||||
@@ -63,6 +63,8 @@ const ProfileDialog = (title = __('Edit Profile'), action={}) => {
|
||||
}
|
||||
});
|
||||
|
||||
dialog.set_values(initial_values);
|
||||
|
||||
// Post create
|
||||
const default_company = frappe.defaults.get_default('company');
|
||||
dialog.set_value('company', default_company);
|
||||
|
||||
Reference in New Issue
Block a user