mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-20 00:23:03 +00:00
feat: calendar plugin
This commit is contained in:
committed by
Rainer Killinger
parent
080e6fa3e8
commit
a57c3029df
@@ -12,7 +12,7 @@
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
import {Component, NgZone} from '@angular/core';
|
||||
import {AfterContentInit, Component, NgZone} from '@angular/core';
|
||||
import {Router} from '@angular/router';
|
||||
import {App, URLOpenListenerEvent} from '@capacitor/app';
|
||||
import {SplashScreen} from '@capacitor/splash-screen';
|
||||
@@ -24,6 +24,7 @@ import {PAIAAuthService} from './modules/auth/paia/paia-auth.service';
|
||||
import {DefaultAuthService} from './modules/auth/default-auth.service';
|
||||
import {environment} from '../environments/environment';
|
||||
import {AuthHelperService} from './modules/auth/auth-helper.service';
|
||||
import {ScheduleSyncService} from './modules/background/schedule/schedule-sync.service';
|
||||
|
||||
/**
|
||||
* TODO
|
||||
@@ -32,7 +33,7 @@ import {AuthHelperService} from './modules/auth/auth-helper.service';
|
||||
selector: 'app-root',
|
||||
templateUrl: 'app.component.html',
|
||||
})
|
||||
export class AppComponent {
|
||||
export class AppComponent implements AfterContentInit {
|
||||
/**
|
||||
* TODO
|
||||
*/
|
||||
@@ -59,6 +60,7 @@ export class AppComponent {
|
||||
* @param paiaAuth Auth Service
|
||||
* @param authHelperService Helper service for OAuth providers
|
||||
* @param toastController Toast controller
|
||||
* @param scheduleSync TODO
|
||||
*/
|
||||
constructor(
|
||||
private readonly platform: Platform,
|
||||
@@ -71,10 +73,15 @@ export class AppComponent {
|
||||
private readonly paiaAuth: PAIAAuthService,
|
||||
private readonly authHelperService: AuthHelperService,
|
||||
private readonly toastController: ToastController,
|
||||
private readonly scheduleSync: ScheduleSyncService,
|
||||
) {
|
||||
void this.initializeApp();
|
||||
}
|
||||
|
||||
ngAfterContentInit() {
|
||||
void this.scheduleSync.enable();
|
||||
}
|
||||
|
||||
/**
|
||||
* TODO
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user