1
0
mirror of https://github.com/bitwarden/web synced 2025-12-31 07:33:39 +00:00

Validate before submit

This commit is contained in:
Hinton
2022-05-17 22:19:27 +02:00
parent 0dfc8c5a0b
commit 43ca31e0ae
2 changed files with 7 additions and 1 deletions

View File

@@ -98,6 +98,12 @@ export class AccountComponent {
}
async submit() {
this.formData.markAllAsTouched();
if (!this.formData.valid) {
return;
}
try {
const request = new OrganizationUpdateRequest();
request.name = this.formData.get("name").value;