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: admin gravatar base URL is empty should use placehoder for default value

shuaicde3ef96898d
diff --git a/ui/src/pages/Admin/SettingsUsers/index.tsx b/ui/src/pages/Admin/SettingsUsers/index.tsx
index e2714790..e0980980 100644
--- a/ui/src/pages/Admin/SettingsUsers/index.tsx
+++ b/ui/src/pages/Admin/SettingsUsers/index.tsx
@@ -94,6 +94,9 @@ const Index: FC = () => {
},
gravatar_base_url: {
'ui:widget': 'input',
+ 'ui:options': {
+ placeholder: 'https://www.gravatar.com/avatar/',
+ },
},
profile_editable: {
'ui:widget': 'legend',
@@ -186,7 +189,7 @@ const Index: FC = () => {
v = 'system';
}
if (k === 'gravatar_base_url' && !v) {
- v = 'https://www.gravatar.com/avatar/';
+ v = '';
}
formMeta[k] = { ...formData[k], value: v };
});