Update: Fixes memo cut-off, changes memo to textarea, auto-expand based on content length, display memo while transaction is in Receiving state

This commit is contained in:
Sam Cheng Hung 2018-03-22 11:50:26 +09:00
commit 7b26261512
7 changed files with 498 additions and 366 deletions

View file

@ -57,6 +57,7 @@
<span ng-if="btx.action == 'sent' || btx.action == 'moved'">
{{addressbook[btx.addressTo].name || addressbook[btx.addressTo] || 'Sending'|translate}}
</span>
<div ng-if="btx.note.body" class="wallet-details__tx-message ellipsis">abc{{btx.note.body}}</div>
<span ng-if="btx.action == 'received'" translate>Receiving</span>
</div>
</div>

View file

@ -106,9 +106,9 @@
</span>
</div>
<div class="item single-line">
<span class="label" translate>
<span class="label flex" translate>
Memo: &emsp;
<input style="display:inline-block;" class="label" type="text" placeholder="{{btx.note.body || btx.message || 'Enter text here'}}" ng-model="btx.note.body" ng-blur="updateNote(btx.note.body)"/>
<textarea elastic placeholder="{{btx.note.body || btx.message || 'Enter text here'}}" ng-model="btx.note.body" ng-blur="updateNote(btx.note.body)"></textarea>
</span>
</div>
<div class="item" ng-if="btx.action != 'received'">