mirror of
https://github.com/bitwarden/server.git
synced 2024-11-22 12:15:36 +01:00
Checking if seats and storage have values before setting them to default (#4596)
This commit is contained in:
parent
452646be8c
commit
4de0f2d783
@ -79,8 +79,13 @@
|
|||||||
document.getElementById('@(nameof(Model.UseTotp))').checked = plan.hasTotp;
|
document.getElementById('@(nameof(Model.UseTotp))').checked = plan.hasTotp;
|
||||||
document.getElementById('@(nameof(Model.UsersGetPremium))').checked = plan.usersGetPremium;
|
document.getElementById('@(nameof(Model.UsersGetPremium))').checked = plan.usersGetPremium;
|
||||||
|
|
||||||
document.getElementById('@(nameof(Model.MaxStorageGb))').value = plan.passwordManager.baseStorageGb || 1;
|
document.getElementById('@(nameof(Model.MaxStorageGb))').value =
|
||||||
document.getElementById('@(nameof(Model.Seats))').value = plan.passwordManager.baseSeats || 1;
|
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) {
|
function unlinkProvider(id) {
|
||||||
|
Loading…
Reference in New Issue
Block a user