1
0
mirror of https://github.com/bitwarden/directory-connector synced 2025-12-18 01:03:22 +00:00

get sync status. clear sync cache

This commit is contained in:
Kyle Spearrin
2018-05-03 15:46:20 -04:00
parent 1632af3e22
commit e40ee1e3a8
9 changed files with 47 additions and 3 deletions

View File

@@ -89,6 +89,14 @@ export class SettingsComponent implements OnInit, OnDestroy {
this.sync.groupNameAttribute = 'name';
}
if (this.sync.interval != null) {
if (this.sync.interval <= 0) {
this.sync.interval = null;
} else if (this.sync.interval < 5) {
this.sync.interval = 5;
}
}
await this.configurationService.saveOrganizationId(this.organizationId);
await this.configurationService.saveDirectoryType(this.directory);
await this.configurationService.saveDirectory(DirectoryType.Ldap, this.ldap);