commit | c687ccb0b54890bbf470f3d3883eb1476761a58d | [log] [tgz] |
---|---|---|
author | Sean Condon <sean@opennetworking.org> | Fri Oct 25 12:27:54 2019 +0100 |
committer | Andrea Campanella <andrea@opennetworking.org> | Fri Oct 25 13:06:28 2019 +0000 |
tree | eba976f1c07924b8eff52486400d804fba0b4d03 | |
parent | 5bae50500fcdbbcf13babfee741a4609ca3c8deb [diff] |
[ONOS-8033] No Visible Indication for Active Applications in ONOS Also tidied up onos.service.ts a bit for unused methods Changed error message in Bazel build to point to new location under Bazel 1.0 Change-Id: Ie95f6fbb108386d3632cc8fa6656dc5b699023d9
diff --git a/web/gui2/src/main/webapp/app/view/apps/apps/apps.component.html b/web/gui2/src/main/webapp/app/view/apps/apps/apps.component.html index 77d5967..c7fc380 100644 --- a/web/gui2/src/main/webapp/app/view/apps/apps/apps.component.html +++ b/web/gui2/src/main/webapp/app/view/apps/apps/apps.component.html
@@ -115,7 +115,7 @@ (click)="selectCallback($event, app)" [ngClass]="{selected: app.id === selId, 'data-change': isChanged(app.id)}"> <td class="table-icon"> - <onos-icon iconId="{{app._iconid_state}}"></onos-icon> + <onos-icon [classes]="getStateAsClass(app.state)" [iconId]="app._iconid_state"></onos-icon> </td> <td class="table-icon"> <!-- The path below gets the app icon from the old GUI path -->
diff --git a/web/gui2/src/main/webapp/app/view/apps/apps/apps.component.ts b/web/gui2/src/main/webapp/app/view/apps/apps/apps.component.ts index 59d91ed..ee543ad 100644 --- a/web/gui2/src/main/webapp/app/view/apps/apps/apps.component.ts +++ b/web/gui2/src/main/webapp/app/view/apps/apps/apps.component.ts
@@ -341,4 +341,13 @@ active: undefined }; } + + getStateAsClass(value: string) { + if (value === 'ACTIVE') { + return 'active'; + } else if (value === 'INSTALLED') { + return 'inactive'; + } + return ''; + } }