1
0
mirror of https://github.com/bitwarden/directory-connector synced 2025-12-24 04:04:29 +00:00
Files
directory-connector/src/app/tabs/dashboard.component.ts
2018-04-28 15:13:32 -04:00

25 lines
780 B
TypeScript

import { Component } from '@angular/core';
import { I18nService } from 'jslib/abstractions/i18n.service';
import { AzureDirectoryService } from '../../services/azure-directory.service';
import { GSuiteDirectoryService } from '../../services/gsuite-directory.service';
import { LdapDirectoryService } from '../../services/ldap-directory.service';
import { SyncService } from '../../services/sync.service';
@Component({
selector: 'app-dashboard',
templateUrl: 'dashboard.component.html',
})
export class DashboardComponent {
constructor(private i18nService: I18nService, private syncService: SyncService) { }
async sync() {
await this.syncService.sync(false, true);
}
async simulate() {
await this.syncService.sync(true, false);
}
}