2014-11-20 09:14:39 -05:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
var StatusDisplayCtrl = function($scope, statusDisplay) {
|
|
|
|
|
|
|
|
// set the show functions
|
2014-11-21 07:33:22 -05:00
|
|
|
statusDisplay.showStatus = function(lbl, time) {
|
2014-11-20 09:14:39 -05:00
|
|
|
$scope.lastUpdateLbl = lbl;
|
|
|
|
$scope.lastUpdate = (time) ? time : '';
|
2014-11-21 07:33:22 -05:00
|
|
|
};
|
2014-11-20 09:14:39 -05:00
|
|
|
|
2014-11-21 07:33:22 -05:00
|
|
|
statusDisplay.showSearching = function(state) {
|
2014-11-20 09:14:39 -05:00
|
|
|
$scope.searching = state;
|
2014-11-21 07:33:22 -05:00
|
|
|
};
|
2014-11-20 09:14:39 -05:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = StatusDisplayCtrl;
|