From 1d8aeb2f54711709cd6209fde3615c43e2d78598 Mon Sep 17 00:00:00 2001 From: Tykayn Date: Mon, 3 May 2021 15:47:27 +0200 Subject: [PATCH] empty and reset time slices --- src/app/core/services/storage.service.ts | 3 +- .../date-select/date-select.component.html | 24 ++++++----- .../form/date-select/date-select.component.ts | 40 +++++++++++++------ .../administration/form/form.component.html | 30 ++++++++++---- 4 files changed, 66 insertions(+), 31 deletions(-) diff --git a/src/app/core/services/storage.service.ts b/src/app/core/services/storage.service.ts index 56067873..2fae53b3 100644 --- a/src/app/core/services/storage.service.ts +++ b/src/app/core/services/storage.service.ts @@ -34,7 +34,7 @@ export class StorageService { public dateList: DateChoice[] = otherDefaultDates; @LocalStorage() - public timeSlices: TimeSlices[] = basicSlicesOfDay; + public timeSlices: TimeSlices[]; @LocalStorage() public vote_stack: Stack = new Stack(); @@ -46,6 +46,7 @@ export class StorageService { this.userPolls.push( new Poll(new Owner(), 'Démo: Réunion du département des chatons', 'aujourdhui-ou-demain') ); + // this.timeSlices = basicSlicesOfDay; } } diff --git a/src/app/features/administration/form/date-select/date-select.component.html b/src/app/features/administration/form/date-select/date-select.component.html index 6127ebc3..5492843c 100644 --- a/src/app/features/administration/form/date-select/date-select.component.html +++ b/src/app/features/administration/form/date-select/date-select.component.html @@ -4,14 +4,6 @@ {{ 'choices.title' | translate }} {{ 'dates.add' | translate }} -

- - {{ 'choices.helper' | translate }} - -

- {{ 'choices.answer_preset_1' | translate }} - {{ 'choices.add' | translate }} - {{ 'choices.continue' | translate }} +
-
+

Dates

-
- {{ id }}) +
- - - -
@@ -62,6 +55,29 @@
+ +

+ + {{ 'choices.helper' | translate }} + +

+ {{ 'choices.answer_preset_1' | translate }} + {{ 'choices.add' | translate }} + {{ 'choices.continue' | translate }} + + + +