Refactor BDC dashboard to use ModelView Dashboard (#10327)

* WIP refactor

* More changes

* More changes

* Remove unused styles

* Uncomment code
This commit is contained in:
Charles Gagnon
2020-05-11 09:21:03 -07:00
committed by GitHub
parent 3d2d791f18
commit 567c1be9fb
13 changed files with 238 additions and 429 deletions

View File

@@ -210,17 +210,17 @@ export function getHealthStatusIcon(healthStatus?: string): string {
}
/**
* Returns the status dot string which will be a • for all non-healthy states
* Returns the status dot icon which will be a • for all non-healthy states
* @param healthStatus The status to check
*/
export function getHealthStatusDot(healthStatus?: string): string {
export function getHealthStatusDotIcon(healthStatus?: string): constants.IconPath {
healthStatus = healthStatus || '';
switch (healthStatus.toLowerCase()) {
case 'healthy':
return '';
return constants.IconPathHelper.status_circle_blank;
default:
// Display status dot for all non-healthy status'
return '•';
return constants.IconPathHelper.status_circle_red;
}
}