Skip to content

Commit

Permalink
Merge pull request #990 from Gepardgame/feat/GetMessageWhenUpdating
Browse files Browse the repository at this point in the history
Feat/get message when updating
  • Loading branch information
nscuro authored Sep 11, 2024
2 parents 0d8e647 + f08458e commit 1d91e6f
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions src/views/administration/configuration/WelcomeMessage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,18 @@ export default {
this.welcomeMessage !== '' ? this.welcomeMessage : ' ',
),
});
axios.post(url, {
groupName: 'general',
propertyName: 'welcome.message.enabled',
propertyValue: this.isWelcomeMessage,
});
axios
.post(url, {
groupName: 'general',
propertyName: 'welcome.message.enabled',
propertyValue: this.isWelcomeMessage,
})
.then((response) => {
this.$toastr.s(this.$t('admin.configuration_saved'));
})
.catch((error) => {
this.$toastr.w(this.$t('condition.unsuccessful_action'));
});
},
},
};
Expand Down

0 comments on commit 1d91e6f

Please sign in to comment.