1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 09:13:33 +00:00

Revert "[PM-13999] Show estimated tax for taxable countries (#12145)" (#12244)

This reverts commit 1dce7f5ba0.
This commit is contained in:
Jonas Hendrickx
2024-12-04 15:40:57 +01:00
committed by GitHub
parent 864e6759fd
commit b25dc6300c
34 changed files with 1243 additions and 1093 deletions

View File

@@ -29,7 +29,7 @@
</div>
</div>
<app-manage-tax-information />
<button class="tw-mt-8" bitButton bitFormButton buttonType="primary" type="submit">
<button bitButton bitFormButton buttonType="primary" type="submit">
{{ "submit" | i18n }}
</button>
</form>

View File

@@ -109,7 +109,9 @@ export class SetupComponent implements OnInit, OnDestroy {
try {
this.formGroup.markAllAsTouched();
if (!this.manageTaxInformationComponent.validate() || !this.formGroup.valid) {
const formIsValid = this.formGroup.valid && this.manageTaxInformationComponent.touch();
if (!formIsValid) {
return;
}
@@ -127,11 +129,14 @@ export class SetupComponent implements OnInit, OnDestroy {
request.taxInfo.country = taxInformation.country;
request.taxInfo.postalCode = taxInformation.postalCode;
request.taxInfo.taxId = taxInformation.taxId;
request.taxInfo.line1 = taxInformation.line1;
request.taxInfo.line2 = taxInformation.line2;
request.taxInfo.city = taxInformation.city;
request.taxInfo.state = taxInformation.state;
if (taxInformation.includeTaxId) {
request.taxInfo.taxId = taxInformation.taxId;
request.taxInfo.line1 = taxInformation.line1;
request.taxInfo.line2 = taxInformation.line2;
request.taxInfo.city = taxInformation.city;
request.taxInfo.state = taxInformation.state;
}
const provider = await this.providerApiService.postProviderSetup(this.providerId, request);