mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-19 01:06:36 +00:00
fix(GUI): replace Math object usage in progressButton directive (#1263)
We were using `Math.min` in a progressButton's template expression, however such object is not exposed to the Angular expression context.
This commit is contained in:
parent
f15587807a
commit
19dd2834fb
@ -3,5 +3,5 @@
|
||||
'progress-button--striped': striped && striped != 'false'
|
||||
}">
|
||||
<span class="progress-button__content" ng-transclude></span>
|
||||
<span class="progress-button__bar" ng-style="{ width: Math.min(100, percentage) + '%' }"></span>
|
||||
<span class="progress-button__bar" ng-style="{ width: (percentage > 100 ? 100 : percentage) + '%' }"></span>
|
||||
</button>
|
||||
|
Loading…
x
Reference in New Issue
Block a user