mirror of
1
Fork 0

properly get admin account contact from instance response

This commit is contained in:
f0x 2022-09-16 21:04:50 +02:00
parent d6a2801d49
commit 45c4c1fa3f
2 changed files with 3 additions and 2 deletions

View File

@ -67,7 +67,7 @@ module.exports = function AdminSettings() {
/> />
<TextInput <TextInput
id="contact_username" id="contact_account.username"
name="Contact user (local account username)" name="Contact user (local account username)"
placeHolder="admin" placeHolder="admin"
/> />

View File

@ -32,7 +32,8 @@ module.exports = function ({ apiCall, getChanges }) {
const state = getState().instances.adminSettings; const state = getState().instances.adminSettings;
const update = getChanges(state, { const update = getChanges(state, {
formKeys: ["title", "short_description", "description", "contact_username", "email", "terms"], formKeys: ["title", "short_description", "description", "contact_account.username", "email", "terms"],
renamedKeys: {"contact_account.username": "contact_username"},
// fileKeys: ["avatar", "header"] // fileKeys: ["avatar", "header"]
}); });