2015-03-06 12:00:10 -03:00
|
|
|
'use strict';
|
|
|
|
|
|
2015-07-23 13:21:31 +03:00
|
|
|
angular.module('copayApp.controllers').controller('topbarController', function($rootScope, go) {
|
|
|
|
|
|
|
|
|
|
this.onQrCodeScanned = function(data) {
|
|
|
|
|
$rootScope.$emit('dataScanned', data);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
this.openSendScreen = function() {
|
|
|
|
|
go.send();
|
|
|
|
|
};
|
2015-03-06 12:00:10 -03:00
|
|
|
|
2015-04-24 03:22:06 -03:00
|
|
|
this.goHome = function() {
|
|
|
|
|
go.walletHome();
|
|
|
|
|
};
|
|
|
|
|
|
2015-03-06 12:00:10 -03:00
|
|
|
});
|