2020-01-15 17:55:22 +01:00
|
|
|
import {Component, OnInit} from '@angular/core';
|
|
|
|
import {BaseComponent} from "../base-page/base.component";
|
|
|
|
import {ConfigService} from "../../services/config.service";
|
|
|
|
import {mockPoll3} from "../../config/mock-poll3";
|
2020-01-16 10:20:15 +01:00
|
|
|
import {mockComments} from "../../config/mock-comments";
|
2020-01-15 17:55:22 +01:00
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'framadate-poll-display',
|
|
|
|
templateUrl: './poll-display.component.html',
|
|
|
|
styleUrls: ['./poll-display.component.scss']
|
|
|
|
})
|
|
|
|
export class PollDisplayComponent extends BaseComponent implements OnInit {
|
|
|
|
|
|
|
|
private pollConfigFetched = mockPoll3;
|
2020-01-16 10:20:15 +01:00
|
|
|
private comments = mockComments;
|
|
|
|
|
2020-01-15 17:55:22 +01:00
|
|
|
constructor(public config: ConfigService) {
|
|
|
|
super(config);
|
|
|
|
}
|
|
|
|
|
|
|
|
ngOnInit() {
|
|
|
|
// fetch poll with its ID or slug.
|
|
|
|
// store it in the poll property here
|
|
|
|
}
|
|
|
|
|
2020-01-16 10:20:15 +01:00
|
|
|
exportCSV() {
|
|
|
|
// TODO
|
|
|
|
}
|
2020-01-15 17:55:22 +01:00
|
|
|
}
|