copay/js/controllers/home.js

13 lines
388 B
JavaScript
Raw Normal View History

'use strict';
2014-09-02 21:25:08 -07:00
angular.module('copayApp.controllers').controller('HomeController', function($scope, $rootScope, $location, walletFactory, notification, controllerUtils) {
2014-08-04 07:27:46 -07:00
2014-09-02 21:25:08 -07:00
controllerUtils.redirIfLogged();
2014-09-04 12:23:37 -07:00
$scope.retreiving = true;
2014-09-18 15:20:00 -07:00
walletFactory.getWallets(function(err,ret) {
2014-09-04 12:23:37 -07:00
$scope.retreiving = false;
2014-09-02 21:25:08 -07:00
$scope.hasWallets = (ret && ret.length > 0) ? true : false;
});
2014-09-02 21:25:08 -07:00
});