mirror of
https://github.com/nasa/openmct.git
synced 2025-06-03 08:00:52 +00:00
[Performance] Colorize watch counter
Colorize the watch counter when it exceeds 2000, to aid in detecting/diagnosing issues like WTD-717.
This commit is contained in:
parent
5ee872713f
commit
d192d611f9
@ -40,7 +40,7 @@ define(
|
|||||||
* @returns {string} the character of the database icon
|
* @returns {string} the character of the database icon
|
||||||
*/
|
*/
|
||||||
getGlyph: function () {
|
getGlyph: function () {
|
||||||
return "A";
|
return "E";
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Get the name of the CSS class to apply to the glyph.
|
* Get the name of the CSS class to apply to the glyph.
|
||||||
@ -49,14 +49,16 @@ define(
|
|||||||
* @returns {string} the CSS class to apply to this glyph
|
* @returns {string} the CSS class to apply to this glyph
|
||||||
*/
|
*/
|
||||||
getGlyphClass: function () {
|
getGlyphClass: function () {
|
||||||
return undefined;
|
return (watches > 2000) ? "caution" :
|
||||||
|
(watches < 1000) ? "ok" :
|
||||||
|
undefined;
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Get the text that should appear in the indicator.
|
* Get the text that should appear in the indicator.
|
||||||
* @returns {string} brief summary of connection status
|
* @returns {string} brief summary of connection status
|
||||||
*/
|
*/
|
||||||
getText: function () {
|
getText: function () {
|
||||||
return "Watches " + watches;
|
return watches + " watches";
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Get a longer-form description of the current connection
|
* Get a longer-form description of the current connection
|
||||||
|
Loading…
x
Reference in New Issue
Block a user