add flash message for successfully saving server settings

This commit is contained in:
Jan Naahs 2020-11-27 19:50:24 +01:00
parent 6c2dff47cc
commit 2d884d927c

View File

@ -33,10 +33,11 @@ const ServerSettings = () => {
data[key] = settings[key];
}
});
const res = settingsResource.server.update(data);
if (res) {
fetchSettings();
}
settingsResource.server.update(data)
.then(() => {
fetchSettings()
.then(() => window.flash("Settings saved.", "green"))
});
}
useEffect(() => {