forked from tykayn/funky-framadate-front
⚡ toast messages when copied to clipboard and network errors
This commit is contained in:
parent
4098f7ec5c
commit
b44f2719b4
@ -52,3 +52,5 @@
|
||||
<router-outlet></router-outlet>
|
||||
</main>
|
||||
<framadate-debugger></framadate-debugger>
|
||||
<p-toast position="top-right"></p-toast>
|
||||
|
||||
|
@ -89,3 +89,4 @@
|
||||
|
||||
</section>
|
||||
|
||||
<p-toast position="bottom-right"></p-toast>
|
||||
|
@ -24,7 +24,11 @@ export class EndConfirmationComponent extends BaseComponent implements OnInit {
|
||||
}
|
||||
|
||||
copyLink(str: any) {
|
||||
this.messageService.add({severity: 'success', summary: 'Service Message', detail: 'Via MessageService'});
|
||||
this.messageService.add({
|
||||
severity: 'success',
|
||||
summary: 'Lien copié',
|
||||
detail: str
|
||||
});
|
||||
}
|
||||
|
||||
sendToEmail() {
|
||||
|
@ -186,7 +186,7 @@ export class ConfigService extends PollConfig {
|
||||
// TODO handle a toast message
|
||||
console.error('err', err);
|
||||
this.loading = false;
|
||||
this.messageService.add({severity: 'warning', summary: "Erreur lors de l'appel "});
|
||||
this.messageService.add({severity: 'warning', summary: "Erreur lors de l'appel ", detail: err.message});
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user