We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6cf68b commit 9e06efaCopy full SHA for 9e06efa
1 file changed
web/src/pages/settings/SettingsSmtpPage/SettingsSmtpPage.tsx
@@ -165,6 +165,12 @@ const Content = ({ settings }: { settings: Settings }) => {
165
meta: {
166
invalidate: [['settings'], ['info']],
167
},
168
+ onSuccess: () => {
169
+ Snackbar.default(m.settings_msg_saved());
170
+ },
171
+ onError: () => {
172
+ Snackbar.error(m.settings_msg_save_failed());
173
174
});
175
176
const form = useAppForm({
@@ -176,6 +182,7 @@ const Content = ({ settings }: { settings: Settings }) => {
182
177
183
onSubmit: async ({ value }) => {
178
184
await editSettings(value);
185
+ form.reset(value);
179
186
180
187
181
188
0 commit comments