diff --git a/apps/web/src/app/modules/loose-components.module.ts b/apps/web/src/app/modules/loose-components.module.ts index a84ac4fb9a7..2831824d345 100644 --- a/apps/web/src/app/modules/loose-components.module.ts +++ b/apps/web/src/app/modules/loose-components.module.ts @@ -28,24 +28,24 @@ import { FrontendLayoutComponent } from "../layouts/frontend-layout.component"; import { NavbarComponent } from "../layouts/navbar.component"; import { UserLayoutComponent } from "../layouts/user-layout.component"; import { OrganizationLayoutComponent } from "../organizations/layouts/organization-layout.component"; -import { BulkConfirmComponent as OrgBulkConfirmComponent } from "../organizations/manage/bulk/bulk-confirm.component"; -import { BulkDeactivateComponent as OrgBulkDeactivateomponent } from "../organizations/manage/bulk/bulk-deactivate.component"; -import { BulkRemoveComponent as OrgBulkRemoveComponent } from "../organizations/manage/bulk/bulk-remove.component"; -import { BulkStatusComponent as OrgBulkStatusComponent } from "../organizations/manage/bulk/bulk-status.component"; import { CollectionAddEditComponent as OrgCollectionAddEditComponent } from "../organizations/manage/collection-add-edit.component"; import { CollectionsComponent as OrgManageCollectionsComponent } from "../organizations/manage/collections.component"; -import { EntityEventsComponent as OrgEntityEventsComponent } from "../organizations/manage/entity-events.component"; import { EventsComponent as OrgEventsComponent } from "../organizations/manage/events.component"; import { GroupAddEditComponent as OrgGroupAddEditComponent } from "../organizations/manage/group-add-edit.component"; import { GroupsComponent as OrgGroupsComponent } from "../organizations/manage/groups.component"; import { ManageComponent as OrgManageComponent } from "../organizations/manage/manage.component"; -import { PeopleComponent as OrgPeopleComponent } from "../organizations/manage/people.component"; import { PoliciesComponent as OrgPoliciesComponent } from "../organizations/manage/policies.component"; import { PolicyEditComponent as OrgPolicyEditComponent } from "../organizations/manage/policy-edit.component"; -import { ResetPasswordComponent as OrgResetPasswordComponent } from "../organizations/manage/reset-password.component"; -import { UserAddEditComponent as OrgUserAddEditComponent } from "../organizations/manage/user-add-edit.component"; import { UserConfirmComponent as OrgUserConfirmComponent } from "../organizations/manage/user-confirm.component"; -import { UserGroupsComponent as OrgUserGroupsComponent } from "../organizations/manage/user-groups.component"; +import { BulkConfirmComponent as OrgBulkConfirmComponent } from "../organizations/members/bulk/bulk-confirm.component"; +import { BulkDeactivateComponent as OrgBulkDeactivateomponent } from "../organizations/members/bulk/bulk-deactivate.component"; +import { BulkRemoveComponent as OrgBulkRemoveComponent } from "../organizations/members/bulk/bulk-remove.component"; +import { BulkStatusComponent as OrgBulkStatusComponent } from "../organizations/members/bulk/bulk-status.component"; +import { EntityEventsComponent as OrgEntityEventsComponent } from "../organizations/members/entity-events.component"; +import { MembersComponent as OrgPeopleComponent } from "../organizations/members/members.component"; +import { ResetPasswordComponent as OrgResetPasswordComponent } from "../organizations/members/reset-password.component"; +import { UserAddEditComponent as OrgUserAddEditComponent } from "../organizations/members/user-add-edit.component"; +import { UserGroupsComponent as OrgUserGroupsComponent } from "../organizations/members/user-groups.component"; import { DisableSendPolicyComponent } from "../organizations/policies/disable-send.component"; import { MasterPasswordPolicyComponent } from "../organizations/policies/master-password.component"; import { PasswordGeneratorPolicyComponent } from "../organizations/policies/password-generator.component"; diff --git a/apps/web/src/app/modules/vault/modules/organization-vault/organization-vault.component.ts b/apps/web/src/app/modules/vault/modules/organization-vault/organization-vault.component.ts index aaf37e97e4c..876fa3b18d1 100644 --- a/apps/web/src/app/modules/vault/modules/organization-vault/organization-vault.component.ts +++ b/apps/web/src/app/modules/vault/modules/organization-vault/organization-vault.component.ts @@ -24,7 +24,7 @@ import { CipherType } from "@bitwarden/common/enums/cipherType"; import { Organization } from "@bitwarden/common/models/domain/organization"; import { CipherView } from "@bitwarden/common/models/view/cipherView"; -import { EntityEventsComponent } from "../../../../organizations/manage/entity-events.component"; +import { EntityEventsComponent } from "../../../../organizations/members/entity-events.component"; import { AddEditComponent } from "../../../../organizations/vault/add-edit.component"; import { AttachmentsComponent } from "../../../../organizations/vault/attachments.component"; import { CiphersComponent } from "../../../../organizations/vault/ciphers.component"; diff --git a/apps/web/src/app/organizations/manage/people.component.html b/apps/web/src/app/organizations/manage/people.component.html deleted file mode 100644 index a20a95d20aa..00000000000 --- a/apps/web/src/app/organizations/manage/people.component.html +++ /dev/null @@ -1,293 +0,0 @@ - - - - {{ "loading" | i18n }} - - -

{{ "noUsersInList" | i18n }}

- - - {{ "usersNeedConfirmed" | i18n }} - - - - - - - - - - - - -
- - - - - - {{ u.email }} - {{ - "invited" | i18n - }} - {{ - "accepted" | i18n - }} - {{ - "deactivated" | i18n - }} - {{ u.name }} - - - - {{ "userUsingTwoStep" | i18n }} - - - - {{ "enrolledPasswordReset" | i18n }} - - - {{ "owner" | i18n }} - {{ "admin" | i18n }} - {{ "manager" | i18n }} - {{ "user" | i18n }} - {{ "custom" | i18n }} - - -
-
-
- - - - - - - - diff --git a/apps/web/src/app/organizations/manage/bulk/bulk-confirm.component.html b/apps/web/src/app/organizations/members/bulk/bulk-confirm.component.html similarity index 100% rename from apps/web/src/app/organizations/manage/bulk/bulk-confirm.component.html rename to apps/web/src/app/organizations/members/bulk/bulk-confirm.component.html diff --git a/apps/web/src/app/organizations/manage/bulk/bulk-confirm.component.ts b/apps/web/src/app/organizations/members/bulk/bulk-confirm.component.ts similarity index 100% rename from apps/web/src/app/organizations/manage/bulk/bulk-confirm.component.ts rename to apps/web/src/app/organizations/members/bulk/bulk-confirm.component.ts diff --git a/apps/web/src/app/organizations/manage/bulk/bulk-deactivate.component.html b/apps/web/src/app/organizations/members/bulk/bulk-deactivate.component.html similarity index 100% rename from apps/web/src/app/organizations/manage/bulk/bulk-deactivate.component.html rename to apps/web/src/app/organizations/members/bulk/bulk-deactivate.component.html diff --git a/apps/web/src/app/organizations/manage/bulk/bulk-deactivate.component.ts b/apps/web/src/app/organizations/members/bulk/bulk-deactivate.component.ts similarity index 100% rename from apps/web/src/app/organizations/manage/bulk/bulk-deactivate.component.ts rename to apps/web/src/app/organizations/members/bulk/bulk-deactivate.component.ts diff --git a/apps/web/src/app/organizations/manage/bulk/bulk-remove.component.html b/apps/web/src/app/organizations/members/bulk/bulk-remove.component.html similarity index 100% rename from apps/web/src/app/organizations/manage/bulk/bulk-remove.component.html rename to apps/web/src/app/organizations/members/bulk/bulk-remove.component.html diff --git a/apps/web/src/app/organizations/manage/bulk/bulk-remove.component.ts b/apps/web/src/app/organizations/members/bulk/bulk-remove.component.ts similarity index 100% rename from apps/web/src/app/organizations/manage/bulk/bulk-remove.component.ts rename to apps/web/src/app/organizations/members/bulk/bulk-remove.component.ts diff --git a/apps/web/src/app/organizations/manage/bulk/bulk-status.component.html b/apps/web/src/app/organizations/members/bulk/bulk-status.component.html similarity index 100% rename from apps/web/src/app/organizations/manage/bulk/bulk-status.component.html rename to apps/web/src/app/organizations/members/bulk/bulk-status.component.html diff --git a/apps/web/src/app/organizations/manage/bulk/bulk-status.component.ts b/apps/web/src/app/organizations/members/bulk/bulk-status.component.ts similarity index 100% rename from apps/web/src/app/organizations/manage/bulk/bulk-status.component.ts rename to apps/web/src/app/organizations/members/bulk/bulk-status.component.ts diff --git a/apps/web/src/app/organizations/manage/entity-events.component.html b/apps/web/src/app/organizations/members/entity-events.component.html similarity index 100% rename from apps/web/src/app/organizations/manage/entity-events.component.html rename to apps/web/src/app/organizations/members/entity-events.component.html diff --git a/apps/web/src/app/organizations/manage/entity-events.component.ts b/apps/web/src/app/organizations/members/entity-events.component.ts similarity index 100% rename from apps/web/src/app/organizations/manage/entity-events.component.ts rename to apps/web/src/app/organizations/members/entity-events.component.ts diff --git a/apps/web/src/app/organizations/members/members.component.html b/apps/web/src/app/organizations/members/members.component.html new file mode 100644 index 00000000000..82065f2e1db --- /dev/null +++ b/apps/web/src/app/organizations/members/members.component.html @@ -0,0 +1,298 @@ +
+ + + + {{ "loading" | i18n }} + + +

{{ "noUsersInList" | i18n }}

+ + + {{ "usersNeedConfirmed" | i18n }} + + + + + + + + + + + + +
+ + + + + + {{ u.email }} + {{ + "invited" | i18n + }} + {{ + "accepted" | i18n + }} + {{ "deactivated" | i18n }} + {{ u.name }} + + + + {{ "userUsingTwoStep" | i18n }} + + + + {{ "enrolledPasswordReset" | i18n }} + + + {{ "owner" | i18n }} + {{ "admin" | i18n }} + {{ "manager" | i18n }} + {{ "user" | i18n }} + {{ "custom" | i18n }} + + +
+
+
+ + + + + + + + +
diff --git a/apps/web/src/app/organizations/manage/people.component.ts b/apps/web/src/app/organizations/members/members.component.ts similarity index 98% rename from apps/web/src/app/organizations/manage/people.component.ts rename to apps/web/src/app/organizations/members/members.component.ts index a9f0c02929d..6003e9cb3f1 100644 --- a/apps/web/src/app/organizations/manage/people.component.ts +++ b/apps/web/src/app/organizations/members/members.component.ts @@ -38,10 +38,10 @@ import { UserAddEditComponent } from "./user-add-edit.component"; import { UserGroupsComponent } from "./user-groups.component"; @Component({ - selector: "app-org-people", - templateUrl: "people.component.html", + selector: "app-org-members", + templateUrl: "members.component.html", }) -export class PeopleComponent +export class MembersComponent extends BasePeopleComponent implements OnInit { @@ -108,7 +108,7 @@ export class PeopleComponent } async ngOnInit() { - this.route.parent.parent.params.subscribe(async (params) => { + this.route.parent.params.subscribe(async (params) => { this.organizationId = params.organizationId; const organization = await this.organizationService.get(this.organizationId); if (!organization.canManageUsers) { diff --git a/apps/web/src/app/organizations/manage/reset-password.component.html b/apps/web/src/app/organizations/members/reset-password.component.html similarity index 100% rename from apps/web/src/app/organizations/manage/reset-password.component.html rename to apps/web/src/app/organizations/members/reset-password.component.html diff --git a/apps/web/src/app/organizations/manage/reset-password.component.ts b/apps/web/src/app/organizations/members/reset-password.component.ts similarity index 100% rename from apps/web/src/app/organizations/manage/reset-password.component.ts rename to apps/web/src/app/organizations/members/reset-password.component.ts diff --git a/apps/web/src/app/organizations/manage/user-add-edit.component.html b/apps/web/src/app/organizations/members/user-add-edit.component.html similarity index 100% rename from apps/web/src/app/organizations/manage/user-add-edit.component.html rename to apps/web/src/app/organizations/members/user-add-edit.component.html diff --git a/apps/web/src/app/organizations/manage/user-add-edit.component.ts b/apps/web/src/app/organizations/members/user-add-edit.component.ts similarity index 100% rename from apps/web/src/app/organizations/manage/user-add-edit.component.ts rename to apps/web/src/app/organizations/members/user-add-edit.component.ts diff --git a/apps/web/src/app/organizations/manage/user-groups.component.html b/apps/web/src/app/organizations/members/user-groups.component.html similarity index 100% rename from apps/web/src/app/organizations/manage/user-groups.component.html rename to apps/web/src/app/organizations/members/user-groups.component.html diff --git a/apps/web/src/app/organizations/manage/user-groups.component.ts b/apps/web/src/app/organizations/members/user-groups.component.ts similarity index 100% rename from apps/web/src/app/organizations/manage/user-groups.component.ts rename to apps/web/src/app/organizations/members/user-groups.component.ts diff --git a/apps/web/src/app/organizations/organization-routing.module.ts b/apps/web/src/app/organizations/organization-routing.module.ts index 57340ca5202..91a19e6c5f7 100644 --- a/apps/web/src/app/organizations/organization-routing.module.ts +++ b/apps/web/src/app/organizations/organization-routing.module.ts @@ -12,8 +12,8 @@ import { CollectionsComponent } from "./manage/collections.component"; import { EventsComponent } from "./manage/events.component"; import { GroupsComponent } from "./manage/groups.component"; import { ManageComponent } from "./manage/manage.component"; -import { PeopleComponent } from "./manage/people.component"; import { PoliciesComponent } from "./manage/policies.component"; +import { MembersComponent } from "./members/members.component"; import { NavigationPermissionsService } from "./services/navigation-permissions.service"; import { AccountComponent } from "./settings/account.component"; import { OrganizationBillingComponent } from "./settings/organization-billing.component"; @@ -117,7 +117,7 @@ const routes: Routes = [ { path: "", pathMatch: "full", - redirectTo: "people", + redirectTo: "collections", }, { path: "collections", @@ -152,15 +152,6 @@ const routes: Routes = [ permissions: [Permissions.ManageGroups], }, }, - { - path: "people", - component: PeopleComponent, - canActivate: [PermissionsGuard], - data: { - titleId: "people", - permissions: [Permissions.ManageUsers, Permissions.ManageUsersPassword], - }, - }, { path: "policies", component: PoliciesComponent, @@ -198,6 +189,15 @@ const routes: Routes = [ }, ], }, + { + path: "members", + component: MembersComponent, + canActivate: [PermissionsGuard], + data: { + titleId: "members", + permissions: [Permissions.ManageUsers, Permissions.ManageUsersPassword], + }, + }, ], }, ]; diff --git a/bitwarden_license/bit-web/src/app/providers/manage/bulk/bulk-confirm.component.ts b/bitwarden_license/bit-web/src/app/providers/manage/bulk/bulk-confirm.component.ts index f2ab04b9cd7..7ea184aac8a 100644 --- a/bitwarden_license/bit-web/src/app/providers/manage/bulk/bulk-confirm.component.ts +++ b/bitwarden_license/bit-web/src/app/providers/manage/bulk/bulk-confirm.component.ts @@ -4,12 +4,12 @@ import { ProviderUserStatusType } from "@bitwarden/common/enums/providerUserStat import { ProviderUserBulkConfirmRequest } from "@bitwarden/common/models/request/provider/providerUserBulkConfirmRequest"; import { ProviderUserBulkRequest } from "@bitwarden/common/models/request/provider/providerUserBulkRequest"; -import { BulkConfirmComponent as OrganizationBulkConfirmComponent } from "src/app/organizations/manage/bulk/bulk-confirm.component"; -import { BulkUserDetails } from "src/app/organizations/manage/bulk/bulk-status.component"; +import { BulkConfirmComponent as OrganizationBulkConfirmComponent } from "src/app/organizations/members/bulk/bulk-confirm.component"; +import { BulkUserDetails } from "src/app/organizations/members/bulk/bulk-status.component"; @Component({ templateUrl: - "../../../../../../../apps/web/src/app/organizations/manage/bulk/bulk-confirm.component.html", + "../../../../../../../apps/web/src/app/organizations/members/bulk/bulk-confirm.component.html", }) export class BulkConfirmComponent extends OrganizationBulkConfirmComponent { @Input() providerId: string; diff --git a/bitwarden_license/bit-web/src/app/providers/manage/bulk/bulk-remove.component.ts b/bitwarden_license/bit-web/src/app/providers/manage/bulk/bulk-remove.component.ts index bf2bb611187..1445b84fbba 100644 --- a/bitwarden_license/bit-web/src/app/providers/manage/bulk/bulk-remove.component.ts +++ b/bitwarden_license/bit-web/src/app/providers/manage/bulk/bulk-remove.component.ts @@ -2,11 +2,11 @@ import { Component, Input } from "@angular/core"; import { ProviderUserBulkRequest } from "@bitwarden/common/models/request/provider/providerUserBulkRequest"; -import { BulkRemoveComponent as OrganizationBulkRemoveComponent } from "src/app/organizations/manage/bulk/bulk-remove.component"; +import { BulkRemoveComponent as OrganizationBulkRemoveComponent } from "src/app/organizations/members/bulk/bulk-remove.component"; @Component({ templateUrl: - "../../../../../../../apps/web/src/app/organizations/manage/bulk/bulk-remove.component.html", + "../../../../../../../apps/web/src/app/organizations/members/bulk/bulk-remove.component.html", }) export class BulkRemoveComponent extends OrganizationBulkRemoveComponent { @Input() providerId: string; diff --git a/bitwarden_license/bit-web/src/app/providers/manage/people.component.ts b/bitwarden_license/bit-web/src/app/providers/manage/people.component.ts index 9c585bbe5f1..cf29cccf0f9 100644 --- a/bitwarden_license/bit-web/src/app/providers/manage/people.component.ts +++ b/bitwarden_license/bit-web/src/app/providers/manage/people.component.ts @@ -23,8 +23,8 @@ import { ProviderUserBulkResponse } from "@bitwarden/common/models/response/prov import { ProviderUserUserDetailsResponse } from "@bitwarden/common/models/response/provider/providerUserResponse"; import { BasePeopleComponent } from "src/app/common/base.people.component"; -import { BulkStatusComponent } from "src/app/organizations/manage/bulk/bulk-status.component"; -import { EntityEventsComponent } from "src/app/organizations/manage/entity-events.component"; +import { BulkStatusComponent } from "src/app/organizations/members/bulk/bulk-status.component"; +import { EntityEventsComponent } from "src/app/organizations/members/entity-events.component"; import { BulkConfirmComponent } from "./bulk/bulk-confirm.component"; import { BulkRemoveComponent } from "./bulk/bulk-remove.component";