GUI2 implementation of device/flow/port/group/meter/host/link/tunnel view
Review comments incorporated.
Change-Id: I45dd6570961cc3e0f4ffddb7acbf02cd7d860de5
diff --git a/web/gui2/src/main/webapp/app/fw/widget/table.base.ts b/web/gui2/src/main/webapp/app/fw/widget/table.base.ts
index 0093f72..cc29878 100644
--- a/web/gui2/src/main/webapp/app/fw/widget/table.base.ts
+++ b/web/gui2/src/main/webapp/app/fw/widget/table.base.ts
@@ -67,6 +67,11 @@
secondDir: SortDir;
}
+export interface PayloadParams {
+ devId: string;
+}
+
+
/**
* ONOS GUI -- Widget -- Table Base class
*/
@@ -74,7 +79,7 @@
// attributes from the interface
protected annots: TableAnnots;
protected changedData: string[] = [];
- protected payloadParams: any;
+ protected payloadParams: PayloadParams;
protected sortParams: SortParams;
protected selectCallback; // Function
protected parentSelCb = null;
@@ -164,7 +169,7 @@
if (JSON.stringify(newTableData) !== JSON.stringify(this.tableData)) {
this.log.debug('table data has changed');
const oldTableData: any[] = this.tableData;
- this.tableData = [ ...newTableData ]; // ES6 spread syntax
+ this.tableData = [...newTableData]; // ES6 spread syntax
// only flash the row if the data already exists
if (oldTableData.length > 0) {
for (const idx in newTableData) {
@@ -282,4 +287,12 @@
return '';
}
}
+
+ /**
+ * De-selects the row
+ */
+ deselectRow(event) {
+ this.log.debug('Details panel close event');
+ this.selId = event;
+ }
}