Open lucyhilltop opened 7 years ago
Steve Mägi: "samal ajal kui kalendrist valid ajavahemiku, siis võiks näidata kui pikk see ajavahemik on ja näidata palju on veel jäänud päevi puhata kui selline ajavahemik valida"
Implemented the first comment.
Made watcher function for Steve Mägi's comment. UI implementation needs discussion
Function needs to watch for startDate changes too. The calculation is currently always off by 1 day - when startDate == endDate then vm.vacation.selectedVacationLength should be 1 not 0.
Decided to not implement Mägi's comment. It'll be sufficiently addressed in #159
when creating a vacation request, end date should be moved to first available date (including month)