1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-08 11:33:28 +00:00

[PM-16579] update copy (#13138)

* update copy

* update copy refference
This commit is contained in:
Brandon Treston
2025-01-31 11:39:53 -05:00
committed by GitHub
parent 4936e6ad0e
commit 82f416c292
4 changed files with 26 additions and 26 deletions

View File

@@ -83,11 +83,11 @@ export type Permission = {
export const getPermissionList = (): Permission[] => {
const permissions = [
{ perm: CollectionPermission.View, labelId: "canView" },
{ perm: CollectionPermission.ViewExceptPass, labelId: "canViewExceptPass" },
{ perm: CollectionPermission.Edit, labelId: "canEdit" },
{ perm: CollectionPermission.EditExceptPass, labelId: "canEditExceptPass" },
{ perm: CollectionPermission.Manage, labelId: "canManage" },
{ perm: CollectionPermission.View, labelId: "viewItems" },
{ perm: CollectionPermission.ViewExceptPass, labelId: "viewItemsHidePass" },
{ perm: CollectionPermission.Edit, labelId: "editItems" },
{ perm: CollectionPermission.EditExceptPass, labelId: "editItemsHidePass" },
{ perm: CollectionPermission.Manage, labelId: "manageCollection" },
];
return permissions;

View File

@@ -52,11 +52,11 @@ export class VaultCipherRowComponent implements OnInit {
protected CipherType = CipherType;
private permissionList = getPermissionList();
private permissionPriority = [
"canManage",
"canEdit",
"canEditExceptPass",
"canView",
"canViewExceptPass",
"manageCollection",
"editItems",
"editItemsHidePass",
"viewItems",
"viewItemsHidePass",
];
protected organization?: Organization;
@@ -118,7 +118,7 @@ export class VaultCipherRowComponent implements OnInit {
protected get permissionText() {
if (!this.cipher.organizationId || this.cipher.collectionIds.length === 0) {
return this.i18nService.t("canManage");
return this.i18nService.t("manageCollection");
}
const filteredCollections = this.collections.filter((collection) => {

View File

@@ -74,7 +74,7 @@ export class VaultCollectionRowComponent {
get permissionText() {
if (this.collection.id == Unassigned && this.organization?.canEditUnassignedCiphers) {
return this.i18nService.t("canEdit");
return this.i18nService.t("editItems");
}
if ((this.collection as CollectionAdminView).assigned) {
const permissionList = getPermissionList();