From a45afccdf1ff16becd9a903abf4236a6141c9c1c Mon Sep 17 00:00:00 2001 From: Muthukrishnanmatriot <76949556+muthukrishnanmatriot@users.noreply.github.com> Date: Tue, 23 Feb 2021 09:56:38 +0530 Subject: [PATCH] TMSS-579 - code update --- .../src/routes/Scheduling/SchedulingUnitList.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/SAS/TMSS/frontend/tmss_webapp/src/routes/Scheduling/SchedulingUnitList.js b/SAS/TMSS/frontend/tmss_webapp/src/routes/Scheduling/SchedulingUnitList.js index c18e28993f7..a4ab5317d88 100644 --- a/SAS/TMSS/frontend/tmss_webapp/src/routes/Scheduling/SchedulingUnitList.js +++ b/SAS/TMSS/frontend/tmss_webapp/src/routes/Scheduling/SchedulingUnitList.js @@ -129,7 +129,7 @@ class SchedulingUnitList extends Component{ this.checkAndDeleteSchedulingUnit = this.checkAndDeleteSchedulingUnit.bind(this); this.deleteSchedulingUnit = this.deleteSchedulingUnit.bind(this); - this.getDialogContent = this.getDialogContent.bind(this); + this.getSchedulingDialogContent = this.getSchedulingDialogContent.bind(this); this.closeDialog = this.closeDialog.bind(this); this.onRowSelection = this.onRowSelection.bind(this); this.reloadData = this.reloadData.bind(this); @@ -431,12 +431,12 @@ class SchedulingUnitList extends Component{ dialog.type = "confirmation"; dialog.header= "Delete Scheduling Unit(s)"; if (hasInvalidSUD) { - dialog.detail = "Selected Scheduling Unit Draft(s) has Blueprint(s) and it can't be deleted until relevant Blueprint(s) are deleted, Do you want to delete the remaining selected Scheduling Unit(s)?"; + dialog.detail = "Selected Scheduling Unit Draft(s) has Blueprint(s) and it can't be delete until relevant Blueprint(s) are deleted, Do you want to delete the remaining selected Scheduling Unit(s)?"; } else { dialog.detail = "Do you want to delete the selected Scheduling Unit(s)?"; } - dialog.content = this.getDialogContent; + dialog.content = this.getSchedulingDialogContent; dialog.actions = [{id: 'yes', title: 'Yes', callback: this.deleteSchedulingUnit}, {id: 'no', title: 'No', callback: this.closeDialog}]; dialog.onSubmit = this.deleteSchedulingUnit; @@ -450,7 +450,7 @@ class SchedulingUnitList extends Component{ /** * Prepare Scheduling Unit(s) details to show on confirmation dialog */ - getDialogContent() { + getSchedulingDialogContent() { let selectedSchedulingUnits = []; for(const su of this.deleteableDraftWithBlueprint) { selectedSchedulingUnits.push({suId: su.id, suName: su.name, -- GitLab