Skip to content
Snippets Groups Projects
Commit a45afccd authored by Muthukrishnanmatriot's avatar Muthukrishnanmatriot
Browse files

TMSS-579 - code update

parent ab0b9d2b
No related branches found
No related tags found
1 merge request!376Resolve TMSS-579, TMSS-581
...@@ -129,7 +129,7 @@ class SchedulingUnitList extends Component{ ...@@ -129,7 +129,7 @@ class SchedulingUnitList extends Component{
this.checkAndDeleteSchedulingUnit = this.checkAndDeleteSchedulingUnit.bind(this); this.checkAndDeleteSchedulingUnit = this.checkAndDeleteSchedulingUnit.bind(this);
this.deleteSchedulingUnit = this.deleteSchedulingUnit.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.closeDialog = this.closeDialog.bind(this);
this.onRowSelection = this.onRowSelection.bind(this); this.onRowSelection = this.onRowSelection.bind(this);
this.reloadData = this.reloadData.bind(this); this.reloadData = this.reloadData.bind(this);
...@@ -431,12 +431,12 @@ class SchedulingUnitList extends Component{ ...@@ -431,12 +431,12 @@ class SchedulingUnitList extends Component{
dialog.type = "confirmation"; dialog.type = "confirmation";
dialog.header= "Delete Scheduling Unit(s)"; dialog.header= "Delete Scheduling Unit(s)";
if (hasInvalidSUD) { 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 { } else {
dialog.detail = "Do you want to delete the selected Scheduling Unit(s)?"; 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}, dialog.actions = [{id: 'yes', title: 'Yes', callback: this.deleteSchedulingUnit},
{id: 'no', title: 'No', callback: this.closeDialog}]; {id: 'no', title: 'No', callback: this.closeDialog}];
dialog.onSubmit = this.deleteSchedulingUnit; dialog.onSubmit = this.deleteSchedulingUnit;
...@@ -450,7 +450,7 @@ class SchedulingUnitList extends Component{ ...@@ -450,7 +450,7 @@ class SchedulingUnitList extends Component{
/** /**
* Prepare Scheduling Unit(s) details to show on confirmation dialog * Prepare Scheduling Unit(s) details to show on confirmation dialog
*/ */
getDialogContent() { getSchedulingDialogContent() {
let selectedSchedulingUnits = []; let selectedSchedulingUnits = [];
for(const su of this.deleteableDraftWithBlueprint) { for(const su of this.deleteableDraftWithBlueprint) {
selectedSchedulingUnits.push({suId: su.id, suName: su.name, selectedSchedulingUnits.push({suId: su.id, suName: su.name,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment