Skip to content

Commit 1d91e6f

Browse files
authored
Merge pull request #990 from Gepardgame/feat/GetMessageWhenUpdating
Feat/get message when updating
2 parents 0d8e647 + f08458e commit 1d91e6f

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

src/views/administration/configuration/WelcomeMessage.vue

+12-5
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,18 @@ export default {
9999
this.welcomeMessage !== '' ? this.welcomeMessage : ' ',
100100
),
101101
});
102-
axios.post(url, {
103-
groupName: 'general',
104-
propertyName: 'welcome.message.enabled',
105-
propertyValue: this.isWelcomeMessage,
106-
});
102+
axios
103+
.post(url, {
104+
groupName: 'general',
105+
propertyName: 'welcome.message.enabled',
106+
propertyValue: this.isWelcomeMessage,
107+
})
108+
.then((response) => {
109+
this.$toastr.s(this.$t('admin.configuration_saved'));
110+
})
111+
.catch((error) => {
112+
this.$toastr.w(this.$t('condition.unsuccessful_action'));
113+
});
107114
},
108115
},
109116
};

0 commit comments

Comments
 (0)