summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/portalsdk-tag-library
diff options
context:
space:
mode:
authorRachitha Ramappa <rachitha.ramappa@att.com>2020-04-09 20:34:21 +0530
committerRachitha Ramappa <rachitha.ramappa@att.com>2020-04-09 20:34:31 +0530
commite799a2cae0e4d099ccc7cf077adf27f6c36c73b9 (patch)
tree92097268555c26ef0e577eb0fdf1246acc6ac7eb /ecomp-sdk/portalsdk-tag-library
parent200d61e4d44593aa453d82c74c7fcd61a99c93e0 (diff)
Menu page edit and delete issue fix
Change-Id: Ibfb4533375e32a7eb4a0d7ae0aff9dbe13054e41 Issue-ID: PORTAL-867 Signed-off-by: rachitha.ramappa@att.com
Diffstat (limited to 'ecomp-sdk/portalsdk-tag-library')
-rw-r--r--ecomp-sdk/portalsdk-tag-library/projects/portalsdk-tag-lib/src/lib/rdp/rdp-cell-editor/rdp-select-editor/rdp-select-editor.component.ts9
-rw-r--r--ecomp-sdk/portalsdk-tag-library/projects/portalsdk-tag-lib/src/lib/rdp/rdp-data-table/rdp-data-table.component.ts9
2 files changed, 17 insertions, 1 deletions
diff --git a/ecomp-sdk/portalsdk-tag-library/projects/portalsdk-tag-lib/src/lib/rdp/rdp-cell-editor/rdp-select-editor/rdp-select-editor.component.ts b/ecomp-sdk/portalsdk-tag-library/projects/portalsdk-tag-lib/src/lib/rdp/rdp-cell-editor/rdp-select-editor/rdp-select-editor.component.ts
index 24cb2e6f..5fd507ff 100644
--- a/ecomp-sdk/portalsdk-tag-library/projects/portalsdk-tag-lib/src/lib/rdp/rdp-cell-editor/rdp-select-editor/rdp-select-editor.component.ts
+++ b/ecomp-sdk/portalsdk-tag-library/projects/portalsdk-tag-lib/src/lib/rdp/rdp-cell-editor/rdp-select-editor/rdp-select-editor.component.ts
@@ -60,7 +60,6 @@ export class RdpSelectEditorComponent implements OnInit {
@Input() data: any[];
@Output() changedColumnValue = new EventEmitter<any>();
columnValue: any;
-
constructor() { }
ngOnInit() {
@@ -68,12 +67,20 @@ export class RdpSelectEditorComponent implements OnInit {
let rowObj = JSON.parse(this.rowdata);
let column = this.columntitle;
this.columnValue = rowObj[column];
+ for(let i=0; i<this.data.length; i++){
+ if(this.data[i]['id'] == this.columnValue){
+ this.columnValue = this.data[i].name;
+ break;
+ }
+ }
} else {
this.columnValue = null;
}
+ console.log("Select title: ",this.columntitle+" Select Value: ",this.columnValue);
}
detectChange(changedValue) {
+ console.log("Changed value : ", changedValue);
this.changedColumnValue.emit(changedValue);
}
diff --git a/ecomp-sdk/portalsdk-tag-library/projects/portalsdk-tag-lib/src/lib/rdp/rdp-data-table/rdp-data-table.component.ts b/ecomp-sdk/portalsdk-tag-library/projects/portalsdk-tag-lib/src/lib/rdp/rdp-data-table/rdp-data-table.component.ts
index 954d0941..983a2726 100644
--- a/ecomp-sdk/portalsdk-tag-library/projects/portalsdk-tag-lib/src/lib/rdp/rdp-data-table/rdp-data-table.component.ts
+++ b/ecomp-sdk/portalsdk-tag-library/projects/portalsdk-tag-lib/src/lib/rdp/rdp-data-table/rdp-data-table.component.ts
@@ -224,6 +224,15 @@ export class RdpDataTableComponent<T> implements OnChanges, AfterViewInit, OnIni
deleteRow(data: any) {
this.dataTableService.delete(this.applicationService, data);
+ this.applicationService.statusResponse.subscribe(response => {
+ console.log("Response : ",response);
+ if(response == 200){
+ this.applicationService.get();
+ this.applicationService.updatedData.subscribe(updatedResponse =>{
+ this.setData(updatedResponse);
+ })
+ }
+ })
}
applyFilter(filterValue: string) {