Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

fix: add placeholder for add users

shuai78e9d081d122
diff --git a/i18n/en_US.yaml b/i18n/en_US.yaml
index cf9c2adf..35797239 100644
--- a/i18n/en_US.yaml
+++ b/i18n/en_US.yaml
@@ -1430,6 +1430,7 @@ ui:
fields:
users:
label: Bulk add user
+ placeholder: "John Smith, [email protected], BUSYopr2 \n Alice, [email protected], fpDntV8q"
text: Separate “name, email, password” with commas. One user per line.
msg: "Please enter the user's email, one per line."
display_name:
diff --git a/ui/src/hooks/useUserModal/index.tsx b/ui/src/hooks/useUserModal/index.tsx
index 0ae10d6e..771e1315 100644
--- a/ui/src/hooks/useUserModal/index.tsx
+++ b/ui/src/hooks/useUserModal/index.tsx
@@ -38,6 +38,7 @@ const useAddUserModal = (props: IProps = {}) => {
'ui:widget': 'textarea',
'ui:options': {
rows: 6,
+ placeholder: t('form.fields.users.placeholder'),
},
},
};