mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
improvements
This commit is contained in:
@@ -52,8 +52,16 @@ export class ChatPopoverPage implements OnInit {
|
||||
console.log(res);
|
||||
this.close('leave');
|
||||
},
|
||||
(error)=>{
|
||||
this.toastService.badRequest("Não foi possível sair do grupo")
|
||||
(e)=>{
|
||||
if(e.error.errorType = "error-you-are-last-owner"){
|
||||
this.toastService.badRequest("Você é o último administrador do grupo. Por favor, defina o novo administrador antes de sair da grupo.");
|
||||
this.close('cancel');
|
||||
}
|
||||
else{
|
||||
this.toastService.badRequest("Não foi possível sair do grupo");
|
||||
this.close('cancel');
|
||||
}
|
||||
|
||||
},
|
||||
()=>{
|
||||
//loader.remove()
|
||||
@@ -64,8 +72,15 @@ export class ChatPopoverPage implements OnInit {
|
||||
console.log(res);
|
||||
this.close('leave');
|
||||
},
|
||||
(error)=>{
|
||||
this.toastService.badRequest("Não foi possível sair do grupo")
|
||||
(e)=>{
|
||||
if(e.error.errorType = "error-you-are-last-owner"){
|
||||
this.toastService.badRequest("Você é o último administrador do grupo. Por favor, defina o novo administrador antes de sair da grupo.");
|
||||
this.close('cancel');
|
||||
}
|
||||
else{
|
||||
this.toastService.badRequest("Não foi possível sair do grupo");
|
||||
this.close('cancel');
|
||||
}
|
||||
},
|
||||
()=>{
|
||||
//loader.remove()
|
||||
|
||||
Reference in New Issue
Block a user