mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 15:53:27 +00:00
[PM-23920] Admin Console - adopt strongly typed guids (#15814)
Update organization, collection and policy to use strongly typed IDs
This commit is contained in:
@@ -14,6 +14,7 @@ import { Policy } from "@bitwarden/common/admin-console/models/domain/policy";
|
||||
import { AccountService } from "@bitwarden/common/auth/abstractions/account.service";
|
||||
import { ConfigService } from "@bitwarden/common/platform/abstractions/config/config.service";
|
||||
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
|
||||
import { CollectionId, OrganizationId } from "@bitwarden/common/types/guid";
|
||||
import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view";
|
||||
import { SelectComponent } from "@bitwarden/components";
|
||||
|
||||
@@ -33,9 +34,9 @@ const createMockCollection = (
|
||||
canEdit = true,
|
||||
): CollectionView => {
|
||||
return {
|
||||
id,
|
||||
id: id as CollectionId,
|
||||
name,
|
||||
organizationId,
|
||||
organizationId: organizationId as OrganizationId,
|
||||
externalId: "",
|
||||
readOnly,
|
||||
hidePasswords: false,
|
||||
|
||||
Reference in New Issue
Block a user