Skip to content

Commit

Permalink
Update NetworkingCard.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
srimanachanta committed Dec 29, 2023
1 parent c9fe2c9 commit 8e8216c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion photon-client/src/components/settings/NetworkingCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,16 @@ const settingsHaveChanged = (): boolean => {
const saveGeneralSettings = () => {
const changingStaticIp = useSettingsStore().network.connectionType === NetworkConnectionType.Static;
// Update with new values
Object.assign(useSettingsStore().network, tempSettingsStruct.value);
useSettingsStore()
.saveGeneralSettings()
.then((response) => {
useStateStore().showSnackbarMessage({
message: response.data.text || response.data,
color: "success"
});
Object.assign(useSettingsStore().network, tempSettingsStruct.value);
})
.catch((error) => {
if (error.response) {
Expand Down

0 comments on commit 8e8216c

Please sign in to comment.