@@ -42,13 +42,6 @@ import tippy from 'tippy.js';
42
42
43
43
const MAX_DISTANCE_CENTRE_IN_KM = 100 ;
44
44
45
- function fonctionaliteChronodosesActive ( ) {
46
- const now = new Date ( ) ;
47
- const localISODate = `${ now . getFullYear ( ) } -${ Strings . padLeft ( now . getMonth ( ) + 1 , 2 , '0' ) } -${ Strings . padLeft ( now . getDate ( ) , 2 , '0' ) } ` ;
48
- return localISODate >= "2021-05-12" ;
49
- }
50
-
51
-
52
45
export abstract class AbstractVmdRdvView extends LitElement {
53
46
54
47
//language=css
@@ -189,8 +182,7 @@ export abstract class AbstractVmdRdvView extends LitElement {
189
182
} ) :[ ] ;
190
183
191
184
return html `
192
- < div class ="criteria-container text-dark rounded-3 pb-3 ${ classMap ( { 'pt-5' : ! fonctionaliteChronodosesActive ( ) , 'bg-std' : this . searchType === 'standard' , 'bg-chronodose' : this . searchType === 'chronodose' } ) } ">
193
- ${ fonctionaliteChronodosesActive ( ) ?html `
185
+ < div class ="criteria-container text-dark rounded-3 pb-3 ${ classMap ( { 'bg-std' : this . searchType === 'standard' , 'bg-chronodose' : this . searchType === 'chronodose' } ) } ">
194
186
< ul class ="p-0 d-flex flex-row mb-5 bg-white fs-5 ">
195
187
< li class ="col bg-std text-std tab ${ classMap ( { selected : this . searchType === 'standard' } ) } " @click ="${ ( ) => this . updateSearchTypeTo ( 'standard' ) } ">
196
188
Tous les créneaux
@@ -199,7 +191,6 @@ export abstract class AbstractVmdRdvView extends LitElement {
199
191
< span id ="chronodose-label " title ="Les chronodoses sont des doses de vaccin réservables à court terme sans critères d'éligibilité "> < i class ="bi vmdicon-lightning-charge-fill "> </ i > Chronodoses uniquement</ span >
200
192
</ li >
201
193
</ ul >
202
- ` :html `` }
203
194
< div class ="rdvForm-fields row align-items-center mb-3 mb-md-5 ">
204
195
< vmd-commune-or-departement-selector class ="mb-3 "
205
196
@autocomplete-triggered ="${ ( event : CustomEvent < AutocompleteTriggered > ) => this . communeAutocompleteTriggered ( event . detail . value ) } "
0 commit comments