framadate-responsive/src/app/pages/end-confirmation/end-confirmation.component.ts

32 lines
880 B
TypeScript
Raw Normal View History

import { Component, OnInit } from '@angular/core';
import { BaseComponent } from '../example/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({
2020-04-21 10:50:26 +02:00
selector: 'framadate-end-confirmation',
templateUrl: './end-confirmation.component.html',
styleUrls: ['./end-confirmation.component.scss'],
2019-08-10 17:41:01 +02:00
})
export class EndConfirmationComponent extends BaseComponent implements OnInit {
2020-04-21 10:50:26 +02:00
mailToRecieve = '';
2019-08-10 17:41:01 +02:00
2020-04-21 10:50:26 +02:00
constructor(public config: ConfigService, public http: HttpClient, private messageService: MessageService) {
super(config);
this.mailToRecieve = this.config.myEmail;
}
2019-08-10 17:41:01 +02:00
2020-04-21 10:50:26 +02:00
ngOnInit() {}
2020-04-21 10:50:26 +02:00
copyLink(str: any) {
this.messageService.add({
severity: 'success',
summary: 'Lien copié',
detail: str,
});
}
2020-04-21 10:50:26 +02:00
sendToEmail() {}
2019-08-10 17:41:01 +02:00
}