fix switch case

This commit is contained in:
Matias Alejo Garcia 2015-08-12 14:38:29 -03:00
commit 81ebe2708f

View file

@ -12,103 +12,78 @@ angular.module('copayApp.services')
case 'CONNECTION_ERROR': case 'CONNECTION_ERROR':
body = gettext('Network connection error'); body = gettext('Network connection error');
break; break;
;;
case 'NOT_FOUND': case 'NOT_FOUND':
body = gettext('Wallet service not found'); body = gettext('Wallet service not found');
break; break;
;;
case 'BAD_SIGNATURES': case 'BAD_SIGNATURES':
body = gettext('Signatures rejected by server'); body = gettext('Signatures rejected by server');
break; break;
;;
case 'COPAYER_DATA_MISMATCH': case 'COPAYER_DATA_MISMATCH':
body = gettext('Copayer data mismatch'); body = gettext('Copayer data mismatch');
break; break;
;;
case 'COPAYER_IN_WALLET': case 'COPAYER_IN_WALLET':
body = gettext('Copayer already in this wallet'); body = gettext('Copayer already in this wallet');
break; break;
;;
case 'COPAYER_REGISTERED': case 'COPAYER_REGISTERED':
body = gettext('Copayer already registered'); body = gettext('Copayer already registered');
break; break;
;;
case 'COPAYER_VOTED': case 'COPAYER_VOTED':
body = gettext('Copayer already voted on this spend proposal'); body = gettext('Copayer already voted on this spend proposal');
break; break;
;;
case 'DUST_AMOUNT': case 'DUST_AMOUNT':
body = gettext('Amount below dust threshold'); body = gettext('Amount below dust threshold');
break; break;
;;
case 'INCORRECT_ADDRESS_NETWORK': case 'INCORRECT_ADDRESS_NETWORK':
body = gettext('Incorrect address network'); body = gettext('Incorrect address network');
break; break;
;;
case 'INSUFFICIENT_FUNDS': case 'INSUFFICIENT_FUNDS':
body = gettext('Insufficient funds'); body = gettext('Insufficient funds');
break; break;
;;
case 'INSUFFICIENT_FUNDS_FOR_FEE': case 'INSUFFICIENT_FUNDS_FOR_FEE':
body = gettext('Insufficient funds for fee'); body = gettext('Insufficient funds for fee');
break; break;
;;
case 'INVALID_ADDRESS': case 'INVALID_ADDRESS':
body = gettext('Invalid address'); body = gettext('Invalid address');
break; break;
;;
case 'LOCKED_FUNDS': case 'LOCKED_FUNDS':
body = gettext('Funds are locked by pending spend proposals'); body = gettext('Funds are locked by pending spend proposals');
break; break;
;;
case 'NOT_AUTHORIZED': case 'NOT_AUTHORIZED':
body = gettext('Not authorized'); body = gettext('Not authorized');
break; break;
;;
case 'TX_ALREADY_BROADCASTED': case 'TX_ALREADY_BROADCASTED':
body = gettext('Transaction already broadcasted'); body = gettext('Transaction already broadcasted');
break; break;
;;
case 'TX_CANNOT_CREATE': case 'TX_CANNOT_CREATE':
body = gettext('Locktime in effect. Please wait to create a new spend proposal'); body = gettext('Locktime in effect. Please wait to create a new spend proposal');
break; break;
;;
case 'TX_CANNOT_REMOVE': case 'TX_CANNOT_REMOVE':
body = gettext('Locktime in effect. Please wait to remove this spend proposal'); body = gettext('Locktime in effect. Please wait to remove this spend proposal');
break; break;
;;
case 'TX_NOT_ACCEPTED': case 'TX_NOT_ACCEPTED':
body = gettext('Spend proposal is not accepted'); body = gettext('Spend proposal is not accepted');
break; break;
;;
case 'TX_NOT_FOUND': case 'TX_NOT_FOUND':
body = gettext('Spend proposal not found'); body = gettext('Spend proposal not found');
break; break;
;;
case 'TX_NOT_PENDING': case 'TX_NOT_PENDING':
body = gettext('The spend proposal is not pending'); body = gettext('The spend proposal is not pending');
break; break;
;;
case 'UPGRADE_NEEDED': case 'UPGRADE_NEEDED':
body = gettext('Please upgrade Copay to perform this action'); body = gettext('Please upgrade Copay to perform this action');
break; break;
;;
case 'WALLET_ALREADY_EXISTS': case 'WALLET_ALREADY_EXISTS':
body = gettext('Wallet already exists'); body = gettext('Wallet already exists');
break; break;
;;
case 'WALLET_FULL': case 'WALLET_FULL':
body = gettext('Wallet is full'); body = gettext('Wallet is full');
break; break;
;;
case 'WALLET_NOT_COMPLETE': case 'WALLET_NOT_COMPLETE':
body = gettext('Wallet is not complete'); body = gettext('Wallet is not complete');
break; break;
;;
case 'WALLET_NOT_FOUND': case 'WALLET_NOT_FOUND':
body = gettext('Wallet not found'); body = gettext('Wallet not found');
break; break;
;;
} }
} }