|
|
|
@ -28,10 +28,7 @@ export class PollConfig {
|
|
|
|
|
step: number = 0; // step in the progress of creating a poll
|
|
|
|
|
stepMax: number = 3; // step max in the progress of creating a poll
|
|
|
|
|
pollType: string = 'dates';// classic or dates
|
|
|
|
|
// front end choices
|
|
|
|
|
themeChoices: string[] = ['light-watermelon', 'dark-crystal', 'hot-covid'];
|
|
|
|
|
themeSelected: number = 0;
|
|
|
|
|
themeClass: string = 'theme-light-watermelon';
|
|
|
|
|
|
|
|
|
|
title: string = 'titre';
|
|
|
|
|
description: string = 'ma description';
|
|
|
|
|
myName: string = 'mon pseudo';
|
|
|
|
@ -68,6 +65,12 @@ export class PollConfig {
|
|
|
|
|
timeList: DateChoice[] = otherDefaultDates; // ranges of time expressed as strings
|
|
|
|
|
|
|
|
|
|
answers: PollAnswer[] = defaultAnswers;
|
|
|
|
|
// front end choices
|
|
|
|
|
themeChoices: string[] = ['light-watermelon', 'dark-crystal', 'hot-covid'];
|
|
|
|
|
themeSelected: number = 0;
|
|
|
|
|
themeClass: string = 'theme-light-watermelon';
|
|
|
|
|
// modals
|
|
|
|
|
displayConfirmVoteModalAdmin: boolean = false;
|
|
|
|
|
|
|
|
|
|
resetConfig() {
|
|
|
|
|
const self = this;
|
|
|
|
|