Browse Source
Feature/improve message for data provider errors (#1003)
* Add title
* Update changelog
pull/1006/head^2
Thomas Kaul
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
6 additions and
3 deletions
-
CHANGELOG.md
-
apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts
|
|
@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
|
|
|
|
|
### Changed |
|
|
|
|
|
|
|
- Improved the message for data provider errors in the client |
|
|
|
- Changed the label from _Balance_ to _Cash Balance_ in the account dialog |
|
|
|
|
|
|
|
## 1.157.0 - 11.06.2022 |
|
|
|
|
|
@ -81,9 +81,11 @@ export class PortfolioPerformanceComponent implements OnChanges, OnInit { |
|
|
|
} |
|
|
|
|
|
|
|
public onShowErrors() { |
|
|
|
const errorMessageParts = this.errors.map((error) => { |
|
|
|
return `${error.symbol} (${error.dataSource})`; |
|
|
|
}); |
|
|
|
const errorMessageParts = ['Data Provider Errors for']; |
|
|
|
|
|
|
|
for (const error of this.errors) { |
|
|
|
errorMessageParts.push(`${error.symbol} (${error.dataSource})`); |
|
|
|
} |
|
|
|
|
|
|
|
alert(errorMessageParts.join('\n')); |
|
|
|
} |
|
|
|