mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-02 02:05:19 +00:00
kivy: show amount in invoice dialog
This commit is contained in:
parent
f2be3079ea
commit
b82f29a8fd
2 changed files with 6 additions and 0 deletions
|
@ -441,8 +441,10 @@ class InvoicesScreen(CScreen):
|
||||||
pr.verify({})
|
pr.verify({})
|
||||||
exp = pr.get_expiration_date()
|
exp = pr.get_expiration_date()
|
||||||
memo = pr.get_memo()
|
memo = pr.get_memo()
|
||||||
|
amount = pr.get_amount()
|
||||||
popup = Builder.load_file('gui/kivy/uix/ui_screens/invoice.kv')
|
popup = Builder.load_file('gui/kivy/uix/ui_screens/invoice.kv')
|
||||||
popup.ids.requestor_label.text = _("Requestor") + ': ' + pr.get_requestor()
|
popup.ids.requestor_label.text = _("Requestor") + ': ' + pr.get_requestor()
|
||||||
|
popup.ids.amount_label.text = _('Amount') + ': ' + self.app.format_amount_and_units(amount) if amount else ''
|
||||||
popup.ids.expiration_label.text = _('Expires') + ': ' + (format_time(exp) if exp else _('Never'))
|
popup.ids.expiration_label.text = _('Expires') + ': ' + (format_time(exp) if exp else _('Never'))
|
||||||
popup.ids.memo_label.text = _("Description") + ': ' + memo if memo else _("No Description")
|
popup.ids.memo_label.text = _("Description") + ': ' + memo if memo else _("No Description")
|
||||||
popup.ids.signature_label.text = pr.get_verify_status()
|
popup.ids.signature_label.text = pr.get_verify_status()
|
||||||
|
|
|
@ -11,6 +11,10 @@ Popup:
|
||||||
id: requestor_label
|
id: requestor_label
|
||||||
text_size: self.width, None
|
text_size: self.width, None
|
||||||
size_hint: 1, 0.3
|
size_hint: 1, 0.3
|
||||||
|
Label:
|
||||||
|
id: amount_label
|
||||||
|
text_size: self.width, None
|
||||||
|
size_hint: 1, 0.3
|
||||||
Label:
|
Label:
|
||||||
id: expiration_label
|
id: expiration_label
|
||||||
text_size: self.width, None
|
text_size: self.width, None
|
||||||
|
|
Loading…
Add table
Reference in a new issue