fix: check that application URL and email agent are configured for password reset/generation (#1724)

* fix: check that application URL and email agent are configured for password reset/generation

* refactor: reverse flex direction instead of conditionally changing justify
This commit is contained in:
TheCatLady
2021-06-09 23:56:33 -04:00
committed by GitHub
parent 43b2e693e7
commit 091d66a192
10 changed files with 51 additions and 32 deletions

View File

@@ -3,7 +3,7 @@ import { Field, Form, Formik } from 'formik';
import React, { useState } from 'react';
import { defineMessages, useIntl } from 'react-intl';
import { useToasts } from 'react-toast-notifications';
import useSWR from 'swr';
import useSWR, { mutate } from 'swr';
import * as Yup from 'yup';
import globalMessages from '../../../i18n/globalMessages';
import Badge from '../../Common/Badge';
@@ -159,6 +159,7 @@ const NotificationsEmail: React.FC = () => {
pgpPassword: values.pgpPassword,
},
});
mutate('/api/v1/settings/public');
addToast(intl.formatMessage(messages.emailsettingssaved), {
appearance: 'success',