fixes bug when getting all the profil update requests and makes it possible to add a message when dening or accepting a profil update

This commit is contained in:
SimonGschnell
2024-01-23 11:00:43 +01:00
parent 7abe04a69f
commit df74bade9b
12 changed files with 133 additions and 64 deletions
+4 -4
View File
@@ -7,14 +7,14 @@ export default {
return axios.get(url);
},
acceptProfilRequest: function(requestID){
acceptProfilRequest: function(payload){
const url = FHC_JS_DATA_STORAGE_OBJECT.app_root + FHC_JS_DATA_STORAGE_OBJECT.ci_router + '/Cis/ProfilUpdate/acceptProfilRequest';
return axios.post(url,{requestID: requestID});
return axios.post(url,payload);
},
denyProfilRequest: function(requestID){
denyProfilRequest: function(payload){
const url = FHC_JS_DATA_STORAGE_OBJECT.app_root + FHC_JS_DATA_STORAGE_OBJECT.ci_router + '/Cis/ProfilUpdate/denyProfilRequest';
return axios.post(url,{requestID: requestID});
return axios.post(url,payload);
}
}
+2 -2
View File
@@ -5,9 +5,9 @@ export default {
selectProfilRequest: function(uid=null,id=null) {
const url = FHC_JS_DATA_STORAGE_OBJECT.app_root + FHC_JS_DATA_STORAGE_OBJECT.ci_router+
`/Cis/Profil/selectProfilRequest?uid=${uid}&id=${id}`;
`/Cis/Profil/selectProfilRequest`;
return axios.get(url);
return axios.get(url,{uid:uid, id:id});
},
insertProfilRequest: function(topic, payload) {