You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When there is only one mode available (i.e disableModes as been used for two modes), the UI will be cleaner if we automatically hide the mode select dropdown. Example below -
I see we have this behaviour when only day mode is available:
When there is only one mode available (i.e disableModes as been used for two modes), the UI will be cleaner if we automatically hide the mode select dropdown. Example below -
I see we have this behaviour when only day mode is available:
But I'd propose to modify this code:
onlyDayModeIsEnabled() {
const weekIsDisabled = this.config.disableModes?.includes('week');
const monthIsDisabled = this.config.disableModes?.includes('month');
To implement "onlyOneModelIsAvailable" to handle cases where dayIsDisabled and weekIsDisabled but month is not disabled. I.e:
onlyOneModeIsAvailable() {
return this.config.disableModes?.length === 2
},
The text was updated successfully, but these errors were encountered: