From 9a58b3b7745b0991977782aea493c1ddd404b04f Mon Sep 17 00:00:00 2001 From: Alex Morask <144709477+amorask-bitwarden@users.noreply.github.com> Date: Thu, 11 Jul 2024 12:18:09 -0400 Subject: [PATCH] [AC-2853] [AC-2854] [AC-2861] Consolidated Billing UI Bugs (#10055) * Fixed Used column on clients page * Prevent MSP from scaling client below the number of its members * Prevent MSP from selecting negative seats when creating client --- .../providers/clients/create-client-dialog.component.html | 2 +- .../manage-client-subscription-dialog.component.html | 7 ++++++- .../clients/manage-client-subscription-dialog.component.ts | 2 +- .../providers/clients/manage-clients.component.html | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/bitwarden_license/bit-web/src/app/billing/providers/clients/create-client-dialog.component.html b/bitwarden_license/bit-web/src/app/billing/providers/clients/create-client-dialog.component.html index c4b5ec4046..662cd8a69f 100644 --- a/bitwarden_license/bit-web/src/app/billing/providers/clients/create-client-dialog.component.html +++ b/bitwarden_license/bit-web/src/app/billing/providers/clients/create-client-dialog.component.html @@ -56,7 +56,7 @@ {{ "seats" | i18n }} - + {{ "assignedSeats" | i18n }} - +
(this.dialogParams.organization.seats, [ Validators.required, - Validators.min(0), + Validators.min(this.dialogParams.organization.occupiedSeats), ]), }); diff --git a/bitwarden_license/bit-web/src/app/billing/providers/clients/manage-clients.component.html b/bitwarden_license/bit-web/src/app/billing/providers/clients/manage-clients.component.html index caf07e4973..e626df3a63 100644 --- a/bitwarden_license/bit-web/src/app/billing/providers/clients/manage-clients.component.html +++ b/bitwarden_license/bit-web/src/app/billing/providers/clients/manage-clients.component.html @@ -50,7 +50,7 @@ {{ client.seats }} - {{ client.assignedSeats }} + {{ client.occupiedSeats }} {{ client.remainingSeats }}