Closed chuanlin2018 closed 2 years ago
Ready for review. Following are the changes:
Ah, forgot about server side rendering... Will fix it today.
I'm testing this now; meanwhile, consider my suggested tweak in previous comment.
Finally I fixed all server side rendering errors. In landingpage.component.ts, I disabled getMetrics() in server side because somehow server side does not recognize event.body.text(). This could be just the problem when I test it in local. Will check in docker.
Agreed. I am testing in docker to see if it's ok to run this.getMetrics() in landingpage.component.ts in server side. Then I will check in the new code.
This part of code has not been changed so I suspect the error "event.body.text is not a function" is just a problem from my local...
In the code I checked in I added inBrowser guard to this block to avoid the error from event.body.text(). That means in server side we cannot see metrics data...
That's fine for now, I think. We can revisit this later if it becomes important.
I replaced "null" with "[]".
Somehow my previous commit didn't show up...
Make sense.
…r handle metrics refresh
http://mml.nist.gov:8080/browse/ODD-993
Two major changes in this check in:
Here is how the green menu and metrics look like: