mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-08 06:22:53 +00:00
@@ -38,6 +38,7 @@ import {
|
|||||||
CALENDAR_SYNC_ENABLED_KEY,
|
CALENDAR_SYNC_ENABLED_KEY,
|
||||||
CALENDAR_SYNC_SETTINGS_KEY,
|
CALENDAR_SYNC_SETTINGS_KEY,
|
||||||
} from '../../settings/page/calendar-sync-settings-keys';
|
} from '../../settings/page/calendar-sync-settings-keys';
|
||||||
|
import {filter} from 'rxjs/operators';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class ScheduleSyncService implements OnDestroy {
|
export class ScheduleSyncService implements OnDestroy {
|
||||||
@@ -49,10 +50,12 @@ export class ScheduleSyncService implements OnDestroy {
|
|||||||
private durationFormatPipe: DurationPipe,
|
private durationFormatPipe: DurationPipe,
|
||||||
private calendar: CalendarService,
|
private calendar: CalendarService,
|
||||||
) {
|
) {
|
||||||
this.scheduleProvider.uuids$.subscribe(uuids => {
|
this.scheduleProvider.uuids$
|
||||||
this.uuids = uuids;
|
.pipe(filter(uuids => uuids?.length > 0))
|
||||||
void this.syncNativeCalendar();
|
.subscribe(uuids => {
|
||||||
});
|
this.uuids = uuids;
|
||||||
|
void this.syncNativeCalendar();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
uuids: SCUuid[];
|
uuids: SCUuid[];
|
||||||
|
|||||||
Reference in New Issue
Block a user