2020-04-14 11:28:33 +02:00
|
|
|
import { Component, OnInit } from '@angular/core';
|
|
|
|
import { BaseComponent } from '../base-page/base.component';
|
|
|
|
import { HttpClient } from '@angular/common/http';
|
|
|
|
import { ConfigService } from '../../services/config.service';
|
|
|
|
import { MessageService } from 'primeng/api';
|
2019-08-10 17:41:01 +02:00
|
|
|
|
|
|
|
@Component({
|
2019-12-31 19:08:50 +01:00
|
|
|
selector: 'framadate-end-confirmation',
|
|
|
|
templateUrl: './end-confirmation.component.html',
|
2020-04-14 11:28:33 +02:00
|
|
|
styleUrls: ['./end-confirmation.component.scss'],
|
2019-08-10 17:41:01 +02:00
|
|
|
})
|
2019-09-09 10:57:08 +02:00
|
|
|
export class EndConfirmationComponent extends BaseComponent implements OnInit {
|
2019-12-31 19:08:50 +01:00
|
|
|
mailToRecieve = '';
|
2019-08-10 17:41:01 +02:00
|
|
|
|
2020-04-14 11:28:33 +02:00
|
|
|
constructor(public config: ConfigService, public http: HttpClient, private messageService: MessageService) {
|
2019-09-09 10:57:08 +02:00
|
|
|
super(config);
|
2020-01-16 11:46:31 +01:00
|
|
|
this.mailToRecieve = this.config.myEmail;
|
2019-09-09 10:57:08 +02:00
|
|
|
}
|
2019-08-10 17:41:01 +02:00
|
|
|
|
2020-04-14 11:28:33 +02:00
|
|
|
ngOnInit() {}
|
2019-12-31 19:08:50 +01:00
|
|
|
|
2020-01-16 11:46:31 +01:00
|
|
|
copyLink(str: any) {
|
2020-01-16 12:05:54 +01:00
|
|
|
this.messageService.add({
|
|
|
|
severity: 'success',
|
|
|
|
summary: 'Lien copié',
|
2020-04-14 11:28:33 +02:00
|
|
|
detail: str,
|
2020-01-16 12:05:54 +01:00
|
|
|
});
|
2019-12-31 19:08:50 +01:00
|
|
|
}
|
|
|
|
|
2020-04-14 11:28:33 +02:00
|
|
|
sendToEmail() {}
|
2019-08-10 17:41:01 +02:00
|
|
|
}
|