funky-framadate-front/src/app/pages/end-confirmation/end-confirmation.component.ts

38 lines
989 B
TypeScript
Raw Normal View History

import {Component, OnInit} from '@angular/core';
import {BaseComponent} from '../base-page/base.component';
import {HttpClient} from '@angular/common/http';
2019-12-03 17:20:57 +01:00
import {ConfigService} from "../../services/config.service";
2020-01-16 12:00:39 +01:00
import {MessageService} from 'primeng/api';
2019-08-10 17:41:01 +02:00
@Component({
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 {
mailToRecieve = '';
2019-08-10 17:41:01 +02:00
2020-01-16 12:00:39 +01:00
constructor(public config: ConfigService,
public http: HttpClient,
private messageService: MessageService
) {
super(config);
2020-01-16 11:46:31 +01:00
this.mailToRecieve = this.config.myEmail;
}
2019-08-10 17:41:01 +02:00
ngOnInit() {
}
2020-01-16 11:46:31 +01:00
copyLink(str: any) {
this.messageService.add({
severity: 'success',
summary: 'Lien copié',
detail: str
});
}
sendToEmail() {
2019-08-10 17:41:01 +02:00
}
2019-08-10 17:41:01 +02:00
}