Updates tx-status, new design

This commit is contained in:
Gustavo Maximiliano Cortez 2015-12-03 16:22:44 -03:00
commit afc52d69ce
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
4 changed files with 30 additions and 20 deletions

View file

@ -1,6 +1,6 @@
'use strict';
angular.module('copayApp.services').factory('txStatus', function($modal, lodash, profileService, $timeout) {
angular.module('copayApp.services').factory('txStatus', function($modal, lodash, profileService, $timeout, txFormatService) {
var root = {};
root.notify = function(txp, cb) {
@ -42,8 +42,11 @@ angular.module('copayApp.services').factory('txStatus', function($modal, lodash,
};
var openModal = function(type, txp, cb) {
var fc = profileService.focusedClient;
var ModalInstanceCtrl = function($scope, $modalInstance) {
$scope.type = type;
$scope.tx = txFormatService.processTx(txp);
$scope.color = fc.backgroundColor;
$scope.cancel = function() {
$modalInstance.dismiss('cancel');
};