Removed separate Config class
This commit is contained in:
parent
b9cbe21203
commit
97d8429f22
@ -14,7 +14,9 @@ export default class Calendar {
|
||||
|
||||
constructor(json) {
|
||||
this.jsonContent = json;
|
||||
this.groupType = json["group"] ? json["group"].charAt(0) : GroupTypes.Day;
|
||||
this.groupType = json["group"]
|
||||
? json["group"].charAt(0).toUpperCase()
|
||||
: GroupTypes.Day;
|
||||
this.events = new Events(json["events"]);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user