From 9c633f1918fd3bd765c020ae41070781607b23c5 Mon Sep 17 00:00:00 2001 From: Yemel Jardi Date: Thu, 31 Jul 2014 20:34:21 -0300 Subject: [PATCH] Add icons for user actions at transaction proposal --- js/controllers/transactions.js | 4 ++++ views/transactions.html | 32 ++++++++++++++++++-------------- 2 files changed, 22 insertions(+), 14 deletions(-) diff --git a/js/controllers/transactions.js b/js/controllers/transactions.js index 78fcae464..7a8185d9c 100644 --- a/js/controllers/transactions.js +++ b/js/controllers/transactions.js @@ -166,6 +166,10 @@ angular.module('copayApp.controllers').controller('TransactionsController', } }; + $scope.hasAction = function(actions, action) { + return actions.hasOwnProperty('create'); + } + $scope.getShortNetworkName = function() { return config.networkName.substring(0, 4); }; diff --git a/views/transactions.html b/views/transactions.html index a49bfbfc6..1119e81ce 100644 --- a/views/transactions.html +++ b/views/transactions.html @@ -45,23 +45,27 @@ {{cId}}
- - + - - + + + + - - - - - - - - + + + + - - + + + + + + + + +