1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 01:33:33 +00:00

[AC-2209] Update the dash in the admin console collections table permission column to no access (#8609)

* [AC-2209] Update permission text to display "No access" when collection is not assigned

* [AC-2209] Add permission tooltip for unassigned collections
This commit is contained in:
Rui Tomé
2024-04-18 14:17:34 +01:00
committed by GitHub
parent 1e0ad09757
commit 2c8855692c
3 changed files with 17 additions and 3 deletions

View File

@@ -6,6 +6,7 @@ import { CollectionView } from "@bitwarden/common/vault/models/view/collection.v
import { GroupView } from "../../../admin-console/organizations/core";
import { CollectionAdminView } from "../../core/views/collection-admin.view";
import { Unassigned } from "../../individual-vault/vault-filter/shared/models/routed-vault-filter.model";
import {
convertToPermission,
@@ -52,8 +53,8 @@ export class VaultCollectionRowComponent {
}
get permissionText() {
if (!(this.collection as CollectionAdminView).assigned) {
return "-";
if (this.collection.id != Unassigned && !(this.collection as CollectionAdminView).assigned) {
return this.i18nService.t("noAccess");
} else {
const permissionList = getPermissionList(this.organization?.flexibleCollections);
return this.i18nService.t(
@@ -62,6 +63,13 @@ export class VaultCollectionRowComponent {
}
}
get permissionTooltip() {
if (this.collection.id == Unassigned) {
return this.i18nService.t("collectionAdminConsoleManaged");
}
return "";
}
protected edit() {
this.onEvent.next({ type: "editCollection", item: this.collection });
}