mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
add delegate functionality
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user