1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-21 12:05:42 +01:00

Checking if seats and storage have values before setting them to default (#4596)

This commit is contained in:
Conner Turnbull 2024-08-07 11:22:09 -04:00 committed by GitHub
parent 452646be8c
commit 4de0f2d783
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -79,8 +79,13 @@
document.getElementById('@(nameof(Model.UseTotp))').checked = plan.hasTotp;
document.getElementById('@(nameof(Model.UsersGetPremium))').checked = plan.usersGetPremium;
document.getElementById('@(nameof(Model.MaxStorageGb))').value = plan.passwordManager.baseStorageGb || 1;
document.getElementById('@(nameof(Model.Seats))').value = plan.passwordManager.baseSeats || 1;
document.getElementById('@(nameof(Model.MaxStorageGb))').value =
document.getElementById('@(nameof(Model.MaxStorageGb))').value ||
plan.passwordManager.baseStorageGb ||
1;
document.getElementById('@(nameof(Model.Seats))').value = document.getElementById('@(nameof(Model.Seats))').value ||
plan.passwordManager.baseSeats ||
1;
}
function unlinkProvider(id) {