File tree 1 file changed +9
-6
lines changed
1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 384
384
classNames .push (' wh_isMark_disabled' );
385
385
}
386
386
387
+ // Disable days of week if set in configuration
388
+ let dayOfWeekString = this .fConfigs .dayNames [new Date (item .date ).getDay ()];
389
+
390
+ if (this .fConfigs .disabledDayNames .includes (dayOfWeekString)) {
391
+ classNames .push (' cursor-disallowed' );
392
+ classNames .push (' wh_other_dayhide' );
393
+ }
394
+
387
395
return classNames;
388
396
},
389
397
clickDay : function (item ) {
390
398
391
399
// Disable days of week if set in configuration
392
- let dayOfWeek = new Date (item .date ).getDay ();
393
- let dayOfWeekString = this .fConfigs .dayNames [dayOfWeek];
400
+ let dayOfWeekString = this .fConfigs .dayNames [new Date (item .date ).getDay ()];
394
401
395
402
if (this .fConfigs .disabledDayNames .includes (dayOfWeekString)) {
396
- this .$emit (' disabledDayClicked' , {
397
- ' dayOfWeekString' : dayOfWeekString,
398
- ' dayOfWeek' : dayOfWeek,
399
- });
400
403
return false ;
401
404
}
402
405
You can’t perform that action at this time.
0 commit comments