taxtank-core 2.1.67 → 2.1.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -25688,13 +25688,16 @@ class BankAccountsFilterForm extends AbstractForm {
25688
25688
  currencyType: new FormControl(CurrencyTypeEnum.ALL),
25689
25689
  currencies: new FormControl({ value: [], disabled: true }),
25690
25690
  });
25691
- this.listenCurrencyTypeChanges();
25691
+ this.listenFormControlsChanges();
25692
25692
  }
25693
- listenCurrencyTypeChanges() {
25693
+ listenFormControlsChanges() {
25694
25694
  this.get('currencyType').valueChanges.subscribe((value) => {
25695
25695
  value === CurrencyTypeEnum.FOREIGN ? this.get('currencies').enable() : this.get('currencies').disable();
25696
25696
  this.get('currencies').reset();
25697
25697
  });
25698
+ // don't filter by single property when tank type changed
25699
+ this.get('tankType').valueChanges
25700
+ .subscribe(() => this.get('property').setValue(null));
25698
25701
  }
25699
25702
  filter(bankAccounts) {
25700
25703
  const value = this.value;