1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-13 07:54:16 +01:00

16 lines
492 B
JavaScript

'use strict';
Application.Controllers.controller('WalletController', ['$scope', 'walletPromise', 'transactionsPromise', 'proofOfIdentityTypesPromise',
function ($scope, walletPromise, transactionsPromise, proofOfIdentityTypesPromise) {
/* PUBLIC SCOPE */
// current user wallet
$scope.wallet = walletPromise;
// current wallet transactions
$scope.transactions = transactionsPromise;
$scope.hasProofOfIdentityTypes = proofOfIdentityTypesPromise.length > 0;
}
]);