Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
Disable dependent field post save (#150)
Browse files Browse the repository at this point in the history
* Disable dependent field post save

* Disable dependent field post save
  • Loading branch information
ashwin1111 authored Jun 16, 2023
1 parent 0da65b7 commit ab7860f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ export class ExpenseFieldConfigurationComponent implements OnInit {
const createOrUpdateDependentField = this.dependentFields ? this.settingsService.patchDependentFieldSettings(this.workspaceId, payload) : this.settingsService.postDependentFieldSettings(this.workspaceId, payload);

createOrUpdateDependentField.subscribe((response) => {
if (response.is_import_enabled) {
this.dependentExpenseFieldsForm.controls.costCode.disable();
this.dependentExpenseFieldsForm.controls.costType.disable();
}
this.isLoading = false;
this.dependentFields = response;
this.snackBar.open('Dependent fields will be imported in few minutes');
Expand Down

0 comments on commit ab7860f

Please sign in to comment.