[hub][feat] Edit your Profile, recycle profile dialog

This commit is contained in:
Prateeksha Singh
2018-08-20 01:18:41 +05:30
parent 305f7375d1
commit fe67508d60
4 changed files with 54 additions and 16 deletions

View File

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