Feature/improve message for data provider errors (#1003)
* Add title * Update changelog
This commit is contained in:
parent
5329e45e2c
commit
bd33855a27
@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
|
- Improved the message for data provider errors in the client
|
||||||
- Changed the label from _Balance_ to _Cash Balance_ in the account dialog
|
- Changed the label from _Balance_ to _Cash Balance_ in the account dialog
|
||||||
|
|
||||||
## 1.157.0 - 11.06.2022
|
## 1.157.0 - 11.06.2022
|
||||||
|
@ -81,9 +81,11 @@ export class PortfolioPerformanceComponent implements OnChanges, OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public onShowErrors() {
|
public onShowErrors() {
|
||||||
const errorMessageParts = this.errors.map((error) => {
|
const errorMessageParts = ['Data Provider Errors for'];
|
||||||
return `${error.symbol} (${error.dataSource})`;
|
|
||||||
});
|
for (const error of this.errors) {
|
||||||
|
errorMessageParts.push(`${error.symbol} (${error.dataSource})`);
|
||||||
|
}
|
||||||
|
|
||||||
alert(errorMessageParts.join('\n'));
|
alert(errorMessageParts.join('\n'));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user