mirror of
https://framagit.org/framasoft/framadate/funky-framadate-front.git
synced 2023-08-25 13:53:14 +02:00
⚡ 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>
|
<router-outlet></router-outlet>
|
||||||
</main>
|
</main>
|
||||||
<framadate-debugger></framadate-debugger>
|
<framadate-debugger></framadate-debugger>
|
||||||
|
<p-toast position="top-right"></p-toast>
|
||||||
|
|
||||||
|
@ -89,3 +89,4 @@
|
|||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
<p-toast position="bottom-right"></p-toast>
|
||||||
|
@ -24,7 +24,11 @@ export class EndConfirmationComponent extends BaseComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
copyLink(str: any) {
|
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() {
|
sendToEmail() {
|
||||||
|
@ -163,9 +163,9 @@ export class ConfigService extends PollConfig {
|
|||||||
)
|
)
|
||||||
.subscribe(res => {
|
.subscribe(res => {
|
||||||
// message: 'Trouvé! Allez voir votre boite email',
|
// message: 'Trouvé! Allez voir votre boite email',
|
||||||
this.myPolls = res;
|
this.myPolls = res;
|
||||||
console.log('res', res);
|
console.log('res', res);
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.messageService.add({
|
this.messageService.add({
|
||||||
severity: 'success',
|
severity: 'success',
|
||||||
summary: 'Service Message',
|
summary: 'Service Message',
|
||||||
@ -186,7 +186,7 @@ export class ConfigService extends PollConfig {
|
|||||||
// TODO handle a toast message
|
// TODO handle a toast message
|
||||||
console.error('err', err);
|
console.error('err', err);
|
||||||
this.loading = false;
|
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