From b5f3f163d46747a44b89f292c19b66a9d3d381da Mon Sep 17 00:00:00 2001 From: Senyoret1 <34079003+Senyoret1@users.noreply.github.com> Date: Thu, 23 May 2019 17:35:58 -0400 Subject: [PATCH 1/3] Allow to add amounts in USD when creating transactions --- .../double-button.component.html | 4 +- .../double-button.component.scss | 14 +++ .../send-form-advanced.component.html | 22 +++- .../send-form-advanced.component.scss | 4 + .../send-form-advanced.component.ts | 103 ++++++++++++++-- .../send-form/send-form.component.html | 22 +++- .../send-form/send-form.component.scss | 4 + .../send-form/send-form.component.ts | 113 ++++++++++++++++-- src/assets/i18n/en.json | 2 + src/assets/i18n/es.json | 2 + src/styles.scss | 29 ++++- 11 files changed, 292 insertions(+), 27 deletions(-) diff --git a/src/app/components/layout/double-button/double-button.component.html b/src/app/components/layout/double-button/double-button.component.html index b065f72e..678894e0 100644 --- a/src/app/components/layout/double-button/double-button.component.html +++ b/src/app/components/layout/double-button/double-button.component.html @@ -1,11 +1,11 @@
- {{ leftButtonText }} - diff --git a/src/app/components/layout/double-button/double-button.component.scss b/src/app/components/layout/double-button/double-button.component.scss index e627765d..d45b413c 100644 --- a/src/app/components/layout/double-button/double-button.component.scss +++ b/src/app/components/layout/double-button/double-button.component.scss @@ -62,3 +62,17 @@ } } } + +.small { + &.-buttons-container { + padding: 2px; + line-height: 0px; + } + + .-small-button ::ng-deep button { + padding: 0 10px 0 10px; + min-width: 70px; + font-size: 9px; + min-height: 16px; + } +} diff --git a/src/app/components/pages/send-skycoin/send-form-advanced/send-form-advanced.component.html b/src/app/components/pages/send-skycoin/send-form-advanced/send-form-advanced.component.html index aa2a90e6..ae38d70b 100644 --- a/src/app/components/pages/send-skycoin/send-form-advanced/send-form-advanced.component.html +++ b/src/app/components/pages/send-skycoin/send-form-advanced/send-form-advanced.component.html @@ -91,10 +91,19 @@
-