mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user