mirror of
https://github.com/OpenFactorioServerManager/factorio-server-manager.git
synced 2025-01-04 03:49:23 +02:00
add flash message for successfully saving server settings
This commit is contained in:
parent
6c2dff47cc
commit
2d884d927c
@ -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(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user