File tree 1 file changed +11
-17
lines changed
src/views/administration/configuration
1 file changed +11
-17
lines changed Original file line number Diff line number Diff line change @@ -91,26 +91,20 @@ export default {
91
91
editor .style .height = editor .scrollHeight + ' px' ;
92
92
},
93
93
saveChanges () {
94
- let url = ` ${ this .$api .BASE_URL } /${ this .$api .URL_CONFIG_PROPERTY } ` ;
95
- axios .post (url, {
96
- groupName: ' general' ,
97
- propertyName: ' welcome.message.html' ,
98
- propertyValue: encodeURIComponent (
99
- this .welcomeMessage !== ' ' ? this .welcomeMessage : ' ' ,
100
- ),
101
- });
102
- axios
103
- .post (url, {
94
+ this .updateConfigProperties ([
95
+ {
96
+ groupName: ' general' ,
97
+ propertyName: ' welcome.message.html' ,
98
+ propertyValue: encodeURIComponent (
99
+ this .welcomeMessage !== ' ' ? this .welcomeMessage : ' ' ,
100
+ ),
101
+ },
102
+ {
104
103
groupName: ' general' ,
105
104
propertyName: ' welcome.message.enabled' ,
106
105
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
- });
106
+ },
107
+ ]);
114
108
},
115
109
},
116
110
};
You can’t perform that action at this time.
0 commit comments