mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-13 11:23:50 +00:00
feat: expand user options for views with schedule (#565)
* feat: expand user options for views with schedule * fix: selected public id on load * fix: load events on roll * style: remove empty container
This commit is contained in:
@@ -183,6 +183,8 @@ export class EventLoader {
|
||||
this.loaded.nextEventId = nextEvent?.id || null;
|
||||
this.loaded.nextPublicEventId = nextPublicEvent?.id || null;
|
||||
|
||||
this._loadEvent();
|
||||
|
||||
return { currentEvent, nextEvent, timeToNext };
|
||||
}
|
||||
|
||||
@@ -281,6 +283,7 @@ export class EventLoader {
|
||||
// check if current is also public
|
||||
if (event.isPublic) {
|
||||
this.publicEventNow = event;
|
||||
this.loaded.selectedPublicEventId = event.id;
|
||||
} else {
|
||||
// assume there is no public event
|
||||
this.publicEventNow = null;
|
||||
|
||||
Reference in New Issue
Block a user