You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by en...@apache.org on 2025/03/27 12:25:26 UTC

(superset) branch enxdev/feat/fab-list-users-migration updated: refactor(modal) add icons for edit and add modal

This is an automated email from the ASF dual-hosted git repository.

enzomartellucci pushed a commit to branch enxdev/feat/fab-list-users-migration
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/enxdev/feat/fab-list-users-migration by this push:
     new 72460f6121 refactor(modal) add icons for edit and add modal
72460f6121 is described below

commit 72460f61218fb9cdec37943e2e6a3d3153afa538
Author: Enzo Martellucci <en...@gmail.com>
AuthorDate: Thu Mar 27 13:25:06 2025 +0100

    refactor(modal) add icons for edit and add modal
---
 superset-frontend/src/features/users/UserListModal.tsx | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/superset-frontend/src/features/users/UserListModal.tsx b/superset-frontend/src/features/users/UserListModal.tsx
index 0d1684f977..14b3de7950 100644
--- a/superset-frontend/src/features/users/UserListModal.tsx
+++ b/superset-frontend/src/features/users/UserListModal.tsx
@@ -25,6 +25,7 @@ import Checkbox from 'src/components/Checkbox';
 import Select from 'src/components/Select/Select';
 import { Role, UserObject } from 'src/pages/UsersList';
 import { FormInstance } from 'src/components';
+import Icons from 'src/components/Icons';
 import { BaseUserListModalProps, FormValues } from './types';
 import { createUser, updateUser } from './utils';
 
@@ -87,7 +88,17 @@ function UserListModal({
     <FormModal
       show={show}
       onHide={onHide}
-      title={isEditMode ? t('Edit User') : t('Add User')}
+      title={
+        isEditMode ? (
+          <>
+            <Icons.EditOutlined iconSize="l" /> {t('Edit User')}
+          </>
+        ) : (
+          <>
+            <Icons.PlusOutlined iconSize="l" /> {t('Add User')}
+          </>
+        )
+      }
       onSave={onSave}
       formSubmitHandler={handleFormSubmit}
       requiredFields={requiredFields}