From 2e608081ea7a0fc485742dbdcb5bec5a8df17b4c Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Mon, 7 Sep 2020 18:02:03 +0530 Subject: [PATCH] feat: add change icon --- frappe/desk/page/user_profile/user_profile.js | 8 +++++--- frappe/public/icons/timeless/symbol-defs.svg | 7 +++++++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/frappe/desk/page/user_profile/user_profile.js b/frappe/desk/page/user_profile/user_profile.js index 40a0d1295a..0d0ea2d9f0 100644 --- a/frappe/desk/page/user_profile/user_profile.js +++ b/frappe/desk/page/user_profile/user_profile.js @@ -62,9 +62,11 @@ class UserProfile { } setup_user_search() { - this.$user_search_button = this.page.set_secondary_action(__('Change User'), () => { - this.show_user_search_dialog(); - }); + this.$user_search_button = this.page.set_secondary_action( + __('Change User'), + () => this.show_user_search_dialog(), + { icon: 'change', size: 'sm' } + ); } show_user_search_dialog() { diff --git a/frappe/public/icons/timeless/symbol-defs.svg b/frappe/public/icons/timeless/symbol-defs.svg index 830cf6877d..2e35dc87fd 100644 --- a/frappe/public/icons/timeless/symbol-defs.svg +++ b/frappe/public/icons/timeless/symbol-defs.svg @@ -618,4 +618,11 @@ + + + + + + +