[Indicators] Begin adding Couch indicator

Begin adding indicator to display connection status for
CouchDB. WTD-608.
This commit is contained in:
Victor Woeltjen 2014-12-15 10:37:16 -08:00
parent 48bcb662c6
commit 8cfcd2cd15
2 changed files with 40 additions and 0 deletions

View File

@ -18,6 +18,21 @@
{
"key": "COUCHDB_PATH",
"value": "/couch/openmct"
},
{
"key": "COUCHDB_INDICATOR_INTERVAL",
"value": 15000
}
],
"indicators": [
{
"implementation": "CouchIndicator.js",
"depends": [
"$http",
"$interval",
"COUCHDB_PATH",
"COUCHDB_INDICATOR_INTERVAL"
]
}
]
}

View File

@ -0,0 +1,25 @@
/*global define*/
define(
[],
function () {
"use strict";
function CouchIndicator($http, $interval, PATH, INTERVAL) {
function updateIndicator() {
}
$interval(updateIndicator, INTERVAL);
return {
getGlyph: function () {
return "D";
}
}
}
return CouchIndicator;
}
);