add delegate functionality

This commit is contained in:
tiago.kayaya
2021-05-03 12:57:26 +01:00
parent 7bfb09dfaf
commit 620bd61801
7 changed files with 81 additions and 71 deletions
+14
View File
@@ -19,4 +19,18 @@ export class AlertService {
await alert.present();
}
async presentErrorMessage(message:string) {
const alert = await this.alertController.create({
cssClass: 'my-custom-class',
header: 'Mensagem de erro',
message: message,
});
await alert.present();
setTimeout(()=>{
alert.dismiss();
}, 2500);
}
}
+9
View File
@@ -62,6 +62,15 @@ export class ProcessesService {
return this.http.post<any>(`${geturl}`,'', options);
}
DelegateTask(body:any){
const geturl = environment.apiURL + 'Tasks/DelegateTask';
let options = {
headers: this.headers,
};
return this.http.post<any>(`${geturl}`, body, options);
}
GetTaskParticipants(folderId:string): Observable<any>{
const geturl = environment.apiURL + 'Processes/GetUsersInDispash';
let params = new HttpParams();