mirror of
https://github.com/Iconica-Development/flutter_availability.git
synced 2025-05-19 13:13:44 +02:00
fix: allow availability saving when only a template is selected
This commit is contained in:
parent
85297c35fa
commit
89d3c794c7
1 changed files with 3 additions and 1 deletions
|
@ -120,7 +120,9 @@ class AvailabilityViewModel {
|
||||||
|
|
||||||
/// Whether the save button should be enabled
|
/// Whether the save button should be enabled
|
||||||
bool get canSave =>
|
bool get canSave =>
|
||||||
clearAvailability || (startTime != null && endTime != null);
|
clearAvailability ||
|
||||||
|
templateSelected ||
|
||||||
|
(startTime != null && endTime != null);
|
||||||
|
|
||||||
///
|
///
|
||||||
AvailabilityViewModel applyTemplate(AvailabilityTemplateModel template) {
|
AvailabilityViewModel applyTemplate(AvailabilityTemplateModel template) {
|
||||||
|
|
Loading…
Reference in a new issue