mirror of
https://framagit.org/framasoft/framadate/funky-framadate-front.git
synced 2023-08-25 13:53:14 +02:00
38 lines
946 B
TypeScript
38 lines
946 B
TypeScript
import {Component, OnInit} from '@angular/core';
|
|
import {BaseComponent} from "../base-page/base.component";
|
|
import {ConfigService} from "../../services/config.service";
|
|
|
|
@Component({
|
|
selector: 'framadate-create-or-retrieve',
|
|
templateUrl: './create-or-retrieve.component.html',
|
|
styleUrls: ['./create-or-retrieve.component.scss']
|
|
})
|
|
export class CreateOrRetrieveComponent extends BaseComponent implements OnInit {
|
|
|
|
loadedMyPolls: boolean = false;
|
|
|
|
|
|
constructor(public config: ConfigService) {
|
|
super(config);
|
|
}
|
|
|
|
ngOnInit() {
|
|
// if (!environment.production) {
|
|
// this.findMyPollsByEmail('tktest@tktest.com')
|
|
// }
|
|
|
|
}
|
|
|
|
findMyPollsByEmail(email: string) {
|
|
if (!email) {
|
|
return
|
|
}
|
|
this.config.findPollsByEmail(email);
|
|
this.loadedMyPolls = true;
|
|
}
|
|
|
|
trackFunction(index: number, item: any): number {
|
|
return item.id;
|
|
};
|
|
}
|