Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Cesium
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
Cesium-grp
Cesium
Commits
b7d8a6f8
Commit
b7d8a6f8
authored
6 years ago
by
Benoit Lavenier
Browse files
Options
Downloads
Patches
Plain Diff
[fix] Api: fix hide select amounts when only one amount is allowed
parent
b0404696
No related branches found
No related tags found
No related merge requests found
Pipeline
#5138
passed with warnings
6 years ago
Stage: build
Stage: alt_build
Stage: publish
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
www/templates/api/transfer.html
+14
-14
14 additions, 14 deletions
www/templates/api/transfer.html
with
14 additions
and
14 deletions
www/templates/api/transfer.html
+
14
−
14
View file @
b7d8a6f8
...
...
@@ -55,30 +55,30 @@
</div>
<!-- Amount -->
<div
class=
"item item-icon-left-padding item-tx no-border"
ng-if=
"!transferData.amounts"
>
<div
class=
"item item-icon-left-padding item-tx no-border"
ng-if=
"!transferData.amounts"
style=
"min-height: 56px;"
>
<h2
translate
>
API.TRANSFER.AMOUNT
</h2>
<ion-spinner
class=
"badge item-note"
icon=
"android"
ng-show=
"loading"
></ion-spinner>
<div
class=
"badge
item-note
badge-calm ng-hide"
ng-show=
"!loading"
ng-bind-html=
"transferData.amount|formatAmount:{useRelative: false, currency: currency.name}"
></div>
<div
class=
"
item-not
e badge-secondary ng-hide"
ng-show=
"!loading"
ng-bind-html=
"transferData.amount|formatAmount:{useRelative: true, currency: currency.name, currentUD: currency.currentUD}"
></div>
<div
class=
"badge badge-calm ng-hide"
ng-show=
"!loading"
ng-bind-html=
"transferData.amount|formatAmount:{useRelative: false, currency: currency.name}"
></div>
<div
class=
"
badg
e badge-secondary ng-hide"
ng-show=
"!loading"
ng-bind-html=
"transferData.amount|formatAmount:{useRelative: true, currency: currency.name, currentUD: currency.currentUD}"
></div>
</div>
<!-- Amounts -->
<ion-item
class=
"item-icon-left-padding item-input item-select"
<label
ng-if=
"transferData.amounts"
style=
"min-height: 58px;"
class=
"item item-icon-left-padding item-input item-select item-tx no-border"
ng-class=
"{ 'item-input-error': form.$submitted && !transferData.amount}"
>
<div
class=
"input-label"
translate
>
API.TRANSFER.AMOUNT
</div>
<div
class=
"input-label"
>
<span
translate
>
API.TRANSFER.AMOUNT
</span>
<h4
class=
"assertive hidden-xs hidden-sm"
ng-if=
"!transferData.amount"
>
<span
translate
>
API.TRANSFER.AMOUNTS_HELP
</span>
</h4>
</div>
<select
ng-model=
"transferData.amount"
required=
"true"
ng-options=
"(amount |formatAmount:{useRelative: false, currency: currency.name}) for amount in transferData.amounts"
>
</select>
<div
class=
"hidden-xs hidden-sm"
>
<h3
class=
"assertive"
ng-if=
"!transferData.amount"
>
<i
class=
"icon ion-alert-circled"
ng-if=
"form.$submitted && !transferData.amount"
></i>
<span
translate
>
API.TRANSFER.AMOUNTS_HELP
</span>
</h3>
<span
class=
"gray badge-secondary "
ng-bind-html=
"transferData.amount|formatAmount:{useRelative: true, currency: currency.name, currentUD: currency.currentUD}"
></span>
</div>
</ion-item>
<span
class=
"badge badge-secondary ng-hide"
ng-show=
"transferData.amount"
ng-bind-html=
"transferData.amount|formatAmount:{useRelative: true, currency: currency.name, currentUD: currency.currentUD}"
></span>
</label>
<div
class=
"form-errors"
ng-if=
"form.$submitted && !transferData.amount"
>
<div
class=
"form-error"
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment