mirror of https://github.com/moparisthebest/mail
17 lines
382 B
JavaScript
17 lines
382 B
JavaScript
'use strict';
|
|
|
|
var StatusDisplayCtrl = function($scope, statusDisplay) {
|
|
|
|
// set the show functions
|
|
statusDisplay.showStatus = function(lbl, time) {
|
|
$scope.lastUpdateLbl = lbl;
|
|
$scope.lastUpdate = (time) ? time : '';
|
|
};
|
|
|
|
statusDisplay.showSearching = function(state) {
|
|
$scope.searching = state;
|
|
};
|
|
|
|
};
|
|
|
|
module.exports = StatusDisplayCtrl; |