10
10
width : 40% ;
11
11
display : inline-block;
12
12
}
13
+ .mtab-title {
14
+ padding : 5px ;
15
+ font-weight : bold;
16
+ font-size : 11px ;
17
+ text-transform : uppercase;
18
+ }
19
+ .mtab-title .active {
20
+ color : # 34495E ;
21
+ }
13
22
</ style >
14
23
15
24
@@ -278,6 +287,11 @@ <h4 ng-class="{'enable_text_select': !index.isCordova}" class="size-12">
278
287
< span translate > Request a specific amount</ span >
279
288
</ a >
280
289
</ div >
290
+ < div class ="m20t text-center m30b " ng-show ="!home.generatingAddress && home.addr[index.walletId] ">
291
+ < a class ="size-14 " ng-click ="home.openClaimTextcoinModal(home.addr[index.walletId]) " ng-style ="{'color':index.backgroundColor} ">
292
+ < span translate > Claim funds using mnemonic</ span >
293
+ </ a >
294
+ </ div >
281
295
</ div >
282
296
</ div > <!-- END Receive -->
283
297
@@ -326,45 +340,6 @@ <h4 class="title m0">
326
340
This is a private asset, please send it only by clicking links in the chat or send it to your other wallets.
327
341
</ div >
328
342
329
- < div ng-hide ="home.hideAddress ">
330
- < div class ="row collapse ">
331
- < label for ="address " class ="left " >
332
- < span translate > To</ span >
333
- </ label >
334
- < span ng-hide ="sendPaymentForm.address.$pristine ">
335
- < span class ="has-error right size-12 " ng-show ="sendPaymentForm.address.$invalid && _address ">
336
- < i class ="icon-close-circle size-14 "> </ i >
337
- < span class ="vm " translate > Not valid</ span >
338
- </ span >
339
- < small class ="right text-primary " ng-show ="!sendPaymentForm.address.$invalid ">
340
- < i class ="icon-checkmark-circle size-14 "> </ i >
341
- </ small >
342
- </ span >
343
- </ div >
344
-
345
- < div class ="input ">
346
- < input ng-show ="sendPaymentForm.address.$invalid " class ="m0 " type ="text " id ="address " name ="address " ng-disabled ="home.blockUx || home.lockAddress || !home.canSendExternalPayment() " ng-attr-placeholder ="{{home.canSendExternalPayment() ? 'Byteball address' : 'Byteball address of your other wallet →'}} " ng-model ="_address " valid-address required ng-focus ="home.formFocus('address') " ng-blur ="home.formFocus(false) ">
347
- < div class ="addressbook-input " ng-show ="!sendPaymentForm.address.$invalid && _address ">
348
- {{index.addressbook[_address] || _address}}
349
- </ div >
350
- < a class ="postfix size-12 m0 text-gray " ng-hide ="home.blockUx || home.lockAddress " ng-click ="openDestinationAddressModal(index.otherWallets, _address) ">
351
- < i class ="icon-wallet size-18 "> </ i >
352
- </ a >
353
- </ div >
354
- < div ng-if ="home.deviceAddressIsKnown() " style ="font-size: 11px; font-weight: bold; margin-top: -1.5rem; margin-bottom: 1.5rem ">
355
- < a ng-click ="home.openBindModal() ">
356
- < span ng-if ="!home.binding " translate > Bind the payment to a condition</ span >
357
- < span ng-if ="home.binding " translate > This payment is bound to a condition</ span >
358
- </ a >
359
- </ div >
360
- < div id ="binding-drop " class ="f-dropdown " data-dropdown-content style ="padding: 10px; " translate > To bind the payment to a condition, please click the peer's address in chat</ div >
361
- < div ng-if ="!home.deviceAddressIsKnown() " style ="font-size: 11px; font-weight: bold; margin-top: -1.5rem; margin-bottom: 1.5rem ">
362
- < a dropdown-toggle ="#binding-drop " data-options ="align:top ">
363
- < span translate class ="text-gray "> Bind the payment to a condition</ span >
364
- </ a >
365
- </ div >
366
- </ div >
367
-
368
343
< div class ="row " ng-hide ="home.hideAmount ">
369
344
< div class ="large-12 medium-12 columns ">
370
345
< div class ="right " ng-hide ="sendPaymentForm.amount.$pristine && !sendPaymentForm.amount.$modelValue ">
@@ -391,52 +366,107 @@ <h4 class="title m0">
391
366
</ div >
392
367
</ div >
393
368
</ div >
394
- < div class ="row " ng-show ="index.bHasMerkle ">
395
- < div class ="large-12 columns ">
396
- < label for ="merkle_proof "> < span translate > Merkle proof</ span >
397
- < small translate ng-hide ="!sendPaymentForm.merkle_proof.$pristine "> optional</ small >
398
- < small translate class ="has-error " ng-show ="sendPaymentForm.merkle_proof.$invalid && !sendPaymentForm.merkle_proof.$pristine "> too long!</ small >
399
- </ label >
400
- < div class ="input ">
401
- < textarea id ="merkle_proof " ng-disabled ="home.blockUx " name ="merkle_proof " maxlength ="4096 " ng-model ="_merkle_proof "> </ textarea >
402
- </ div >
403
- </ div >
404
- </ div >
405
- < div class ="row " ng-hide ="home.hideNote ">
406
- < div class ="large-12 columns ">
407
- < label for ="comment "> < span translate > Note</ span >
408
- < small translate ng-hide ="!sendPaymentForm.comment.$pristine "> optional</ small >
409
- < small translate class ="has-error " ng-show ="sendPaymentForm.comment.$invalid && !sendPaymentForm.comment.$pristine "> too long!</ small >
410
- </ label >
411
- < div class ="input ">
412
- < textarea id ="comment " ng-disabled ="home.blockUx " name ="comment "
413
- ng-maxlength ="500 " ng-model ="_comment " ng-focus ="home.formFocus('msg') "
414
- ng-blur ="home.formFocus(false) "> </ textarea >
415
- </ div >
416
- </ div >
417
- </ div >
418
-
419
- < div class ="" ng-show ="index.m < index.n && index.m > 1 ">
420
- < div class ="large-12 medium-12 ">
421
- < label >
422
- < span translate > Who signs:</ span >
423
- </ label >
424
- < cosigners > </ cosigners >
425
- </ div >
426
- </ div >
427
369
428
- < div class ="row " ng-show ="!home.onGoingProcess ">
429
- < div class ="large-6 medium-6 small-6 columns " ng-show ="!home.blockUx && (home.lockAddress || home.lockAmount) ">
430
- < a ng-click ="home.resetForm(sendPaymentForm) " class ="button expand outline dark-gray round " translate > Cancel</ a >
431
- </ div >
432
- < div class ="columns " ng-class ="{'small-6 medium-6 large-6':(home.lockAddress || home.lockAmount)} ">
433
- < button type ="submit " class ="button black round expand " ng-disabled ="home.current_payment_key || sendPaymentForm.$invalid || home.blockUx || index.isOffline || !index.isEnoughSignersSelected() "
434
- ng-style ="{'background-color':index.backgroundColor} " translate >
435
- Send
436
- </ button >
437
- </ div >
370
+ < div class ="mtabset " ng-show ="index.arrBalances.length > 0 && index.arrBalances[index.assetIndex].asset === 'base' ">
371
+ < div class ="mtab-title active " ng-click ="mtab = 1 " ng-class ="{'active': mtab == 1} " translate > To byteball address / email</ div >
372
+ < div class ="mtab-title " ng-click ="mtab = 2 " ng-class ="{'active': mtab == 2} "> Share via message</ div >
373
+ </ div >
438
374
439
- </ div >
375
+ < div class ="mtab " ng-class ="{'active': mtab == 1} " ng-init ="mtab = 1 ">
376
+ < div ng-hide ="home.hideAddress ">
377
+ < div class ="row collapse ">
378
+ < label for ="address " class ="left " ng-if ="index.arrBalances.length > 0 && index.arrBalances[index.assetIndex].asset !== 'base' ">
379
+ < span translate > To byteball address</ span >
380
+ </ label >
381
+ < span ng-hide ="sendPaymentForm.address.$pristine ">
382
+ < span class ="has-error right size-12 " ng-show ="sendPaymentForm.address.$invalid && _address ">
383
+ < i class ="icon-close-circle size-14 "> </ i >
384
+ < span class ="vm " translate > Not valid</ span >
385
+ </ span >
386
+ < small class ="right text-primary " ng-show ="!sendPaymentForm.address.$invalid ">
387
+ < i class ="icon-checkmark-circle size-14 "> </ i >
388
+ </ small >
389
+ </ span >
390
+
391
+ </ div >
392
+
393
+ < div class ="input ">
394
+ < input ng-if ="index.arrBalances[index.assetIndex].asset === 'base' " class ="m0 " type ="text " id ="address " name ="address " ng-disabled ="home.blockUx || home.lockAddress || !home.canSendExternalPayment() " ng-attr-placeholder ="{{home.canSendExternalPayment() ? 'Byteball address or email' : 'Byteball address of your other wallet →'}} " ng-model ="_address " ng-required valid-address-or-email ng-focus ="home.formFocus('address') " ng-blur ="home.formFocus(false) ">
395
+
396
+ < input ng-if ="index.arrBalances[index.assetIndex].asset !== 'base' " class ="m0 " type ="text " id ="address " name ="address " ng-disabled ="home.blockUx || home.lockAddress || !home.canSendExternalPayment() " ng-attr-placeholder ="{{home.canSendExternalPayment() ? 'Byteball address' : 'Byteball address of your other wallet →'}} " ng-model ="_address " ng-required valid-address ng-focus ="home.formFocus('address') " ng-blur ="home.formFocus(false) ">
397
+ <!--<div class="addressbook-input" ng-show="!sendPaymentForm.address.$invalid && _address">
398
+ {{index.addressbook[_address] || _address}}
399
+ </div>-->
400
+ < a class ="postfix size-12 m0 text-gray " ng-hide ="home.blockUx || home.lockAddress " ng-click ="openDestinationAddressModal(index.otherWallets, _address) ">
401
+ < i class ="icon-wallet size-18 "> </ i >
402
+ </ a >
403
+ </ div >
404
+ < div ng-if ="home.deviceAddressIsKnown() " style ="font-size: 11px; font-weight: bold; margin-top: -1.5rem; margin-bottom: 1.5rem ">
405
+ < a ng-click ="home.openBindModal() ">
406
+ < span ng-if ="!home.binding " translate > Bind the payment to a condition</ span >
407
+ < span ng-if ="home.binding " translate > This payment is bound to a condition</ span >
408
+ </ a >
409
+ </ div >
410
+ < div id ="binding-drop " class ="f-dropdown " data-dropdown-content style ="padding: 10px; " translate > To bind the payment to a condition, please click the peer's address in chat</ div >
411
+ < div ng-if ="!home.deviceAddressIsKnown() " style ="font-size: 11px; font-weight: bold; margin-top: -1.5rem; margin-bottom: 1.5rem ">
412
+ < a dropdown-toggle ="#binding-drop " data-options ="align:top ">
413
+ < span translate class ="text-gray "> Bind the payment to a condition</ span >
414
+ </ a >
415
+ </ div >
416
+ </ div >
417
+
418
+ < div class ="row " ng-show ="index.bHasMerkle ">
419
+ < div class ="large-12 columns ">
420
+ < label for ="merkle_proof "> < span translate > Merkle proof</ span >
421
+ < small translate ng-hide ="!sendPaymentForm.merkle_proof.$pristine "> optional</ small >
422
+ < small translate class ="has-error " ng-show ="sendPaymentForm.merkle_proof.$invalid && !sendPaymentForm.merkle_proof.$pristine "> too long!</ small >
423
+ </ label >
424
+ < div class ="input ">
425
+ < textarea id ="merkle_proof " ng-disabled ="home.blockUx " name ="merkle_proof " maxlength ="4096 " ng-model ="_merkle_proof "> </ textarea >
426
+ </ div >
427
+ </ div >
428
+ </ div >
429
+ < div class ="row " ng-hide ="home.hideNote ">
430
+ < div class ="large-12 columns ">
431
+ < label for ="comment "> < span translate > Note</ span >
432
+ < small translate ng-hide ="!sendPaymentForm.comment.$pristine "> optional</ small >
433
+ < small translate class ="has-error " ng-show ="sendPaymentForm.comment.$invalid && !sendPaymentForm.comment.$pristine "> too long!</ small >
434
+ </ label >
435
+ < div class ="input ">
436
+ < textarea id ="comment " ng-disabled ="home.blockUx " name ="comment "
437
+ ng-maxlength ="500 " ng-model ="_comment " ng-focus ="home.formFocus('msg') "
438
+ ng-blur ="home.formFocus(false) "> </ textarea >
439
+ </ div >
440
+ </ div >
441
+ </ div >
442
+
443
+ < div class ="" ng-show ="index.m < index.n && index.m > 1 ">
444
+ < div class ="large-12 medium-12 ">
445
+ < label >
446
+ < span translate > Who signs:</ span >
447
+ </ label >
448
+ < cosigners > </ cosigners >
449
+ </ div >
450
+ </ div >
451
+
452
+ < div class ="row " ng-show ="!home.onGoingProcess ">
453
+ < div class ="large-6 medium-6 small-6 columns " ng-show ="!home.blockUx && (home.lockAddress || home.lockAmount) ">
454
+ < a ng-click ="home.resetForm(sendPaymentForm) " class ="button expand outline dark-gray round " translate > Cancel</ a >
455
+ </ div >
456
+ < div class ="columns " ng-class ="{'small-6 medium-6 large-6':(home.lockAddress || home.lockAmount)} ">
457
+ < button type ="submit " class ="button black round expand " ng-disabled ="home.current_payment_key || sendPaymentForm.$invalid || home.blockUx || index.isOffline || !index.isEnoughSignersSelected() "
458
+ ng-style ="{'background-color':index.backgroundColor} " translate >
459
+ Send
460
+ </ button >
461
+ </ div >
462
+ </ div >
463
+ </ div >
464
+
465
+ < div class ="mtab " ng-class ="{'active': mtab == 2} ">
466
+ < br >
467
+ < p translate > Click this button to create payment and share it via private message in chat apps</ p >
468
+ < button type ="submit " class ="button black round expand " ng-disabled ="home.current_payment_key || home.blockUx || index.isOffline || !index.isEnoughSignersSelected() || sendPaymentForm.amount.$invalid " translate ng-style ="{'background-color':index.backgroundColor} "> Share via message</ button >
469
+ </ div >
440
470
</ form >
441
471
</ div >
442
472
</ div >
0 commit comments