1
0
mirror of https://github.com/bitwarden/web synced 2025-12-06 00:03:28 +00:00

Refactor orgnaization policy management (#1147)

This commit is contained in:
Oscar Hinton
2021-08-25 16:10:17 +02:00
committed by GitHub
parent 8a259516df
commit 2cbe023a38
31 changed files with 687 additions and 437 deletions

View File

@@ -20,10 +20,10 @@ import { ProviderUserType } from 'jslib-common/enums/providerUserType';
import { ValidationService } from 'jslib-angular/services/validation.service';
import { Organization } from 'jslib-common/models/domain/organization';
import {
ProviderOrganizationOrganizationDetailsResponse
} from 'jslib-common/models/response/provider/providerOrganizationResponse';
import { Organization } from 'jslib-common/models/domain/organization';
import { ModalComponent } from 'src/app/modal.component';
@@ -88,7 +88,7 @@ export class ClientsComponent implements OnInit {
.map(o => o.id));
this.addableOrganizations = candidateOrgs.filter(o => allowedOrgsIds.includes(o.id));
this.showAddExisting = this.addableOrganizations.length != 0;
this.showAddExisting = this.addableOrganizations.length !== 0;
this.loading = false;
}

View File

@@ -63,7 +63,7 @@ export class SetupComponent implements OnInit {
this.providerId = qParams.providerId;
this.token = qParams.token;
// Check if provider exists, redirect if it does
try {
const provider = await this.apiService.getProvider(this.providerId);