feat: Adds email signature form to profile settings (#3906)
This commit is contained in:
parent
d5c9193d1a
commit
351a3dc372
10 changed files with 254 additions and 7 deletions
|
@ -142,9 +142,9 @@ export default {
|
|||
}) {
|
||||
const formData = new FormData();
|
||||
Object.keys(profileAttributes).forEach(key => {
|
||||
const value = profileAttributes[key];
|
||||
if (value) {
|
||||
formData.append(`profile[${key}]`, value);
|
||||
const hasValue = profileAttributes[key] === undefined;
|
||||
if (!hasValue) {
|
||||
formData.append(`profile[${key}]`, profileAttributes[key]);
|
||||
}
|
||||
});
|
||||
formData.append('profile[display_name]', displayName || '');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue