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

@ -513,6 +513,7 @@ ul.manage li {
.m20r {margin-right: 20px;}
.m20t {margin-top: 20px;}
.m20tp {margin-top: 20%;}
.m30tp {margin-top: 30%;}
.m15 {margin: 15px;}
.m15h {margin: 0 15px;}
.p10t {padding-top: 10px;}

View file

@ -705,14 +705,15 @@ textarea:focus
position: absolute;
width: 100%;
height: 100%;
background: #1ABC9C;
background: rgba(24,44,58,0.90);
}
.popup-txsent i {
font-size: 5rem;
background-color: #fff;
color: #1ABC9C;
color: #4A90E2;
border-radius: 100%;
border-color: #4A90E2;
border: 2px solid;
width: 150px;
height: 150px;
display: block;
@ -722,9 +723,10 @@ textarea:focus
.popup-txsigned i {
font-size: 5rem;
background-color: #1ABC9C;
color: #fff;
color: #4A90E2;
border-radius: 100%;
border-color: #4A90E2;
border: 2px solid;
width: 150px;
height: 150px;
display: block;
@ -734,9 +736,10 @@ textarea:focus
.popup-txrejected i {
font-size: 5rem;
background-color: #ED4A43;
color: #fff;
color: #4A90E2;
border-radius: 100%;
border-color: #4A90E2;
border: 2px solid;
width: 150px;
height: 150px;
display: block;

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');
};