OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Disable submit button while budget costs are updating (#12584)
Yuledd7325d77640
diff --git a/modules/budgets/frontend/module/augment/cost-budget-subform.augment.service.ts b/modules/budgets/frontend/module/augment/cost-budget-subform.augment.service.tsindex 8425084ad06..aa11b45492d 100644--- a/modules/budgets/frontend/module/augment/cost-budget-subform.augment.service.ts+++ b/modules/budgets/frontend/module/augment/cost-budget-subform.augment.service.ts@@ -28,6 +28,7 @@import { Injectable } from '@angular/core';import { HttpClient } from '@angular/common/http';+import { finalize } from 'rxjs/operators';import { HalResourceNotificationService } from 'core-app/features/hal/services/hal-resource-notification.service';@Injectable()@@ -75,6 +76,9 @@ export class CostBudgetSubformAugmentService {* Refreshes the given row after updating values*/public refreshRow(el:JQuery, row_identifier:string):void {+ const form = el.parents('form').first();+ form.find(':submit').attr('disabled', 'disabled');+const row = el.find(`#${row_identifier}`);const request = this.buildRefreshRequest(row, row_identifier);@@ -87,6 +91,11 @@ export class CostBudgetSubformAugmentService {withCredentials: true,},)+ .pipe(+ finalize(() => {+ form.find(':submit').attr('disabled', null);+ }),+ ).subscribe((data:any) => {_.each(data, (val:string, selector:string) => {