Enabled Webuntis Holiday query Implemented Holiday view in Timetable Hide other special time regions like breaks when shown in holiday
This commit is contained in:
@ -1,8 +1,7 @@
|
||||
import 'dart:convert';
|
||||
|
||||
import 'package:intl/intl.dart';
|
||||
|
||||
import '../../api/apiResponse.dart';
|
||||
import '../../api/webuntis/queries/getHolidays/getHolidaysCache.dart';
|
||||
import '../../api/webuntis/queries/getHolidays/getHolidaysResponse.dart';
|
||||
import '../../api/webuntis/queries/getRooms/getRoomsCache.dart';
|
||||
import '../../api/webuntis/queries/getRooms/getRoomsResponse.dart';
|
||||
@ -79,15 +78,16 @@ class TimetableProps extends DataHolder {
|
||||
}
|
||||
);
|
||||
|
||||
// GetHolidaysCache( // TODO is this fixed by webuntis? miese kriese
|
||||
// onUpdate: (GetHolidaysResponse data) => {
|
||||
// _getHolidaysResponse = data,
|
||||
// notifyListeners(),
|
||||
// }
|
||||
// );
|
||||
_getHolidaysResponse = GetHolidaysResponse.fromJson(jsonDecode("""
|
||||
{"jsonrpc":"2.0","id":"ID","result":[]}
|
||||
"""));
|
||||
GetHolidaysCache( // This broke in the past. Below here is backup simulation for an empty holiday block
|
||||
onUpdate: (GetHolidaysResponse data) => {
|
||||
_getHolidaysResponse = data,
|
||||
notifyListeners(),
|
||||
}
|
||||
);
|
||||
// _getHolidaysResponse = GetHolidaysResponse.fromJson(jsonDecode("""
|
||||
// {"jsonrpc":"2.0","id":"ID","result":[]}
|
||||
// """));
|
||||
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user