This PR adds error / success alerts after analytic units' import.
Error:
Success:
Changes
AnalyticService: new optional rawError argument in get/ post/patch/delete/_analyticRequest methods: makes _analyticRequest re-throw the caught error instead of handling it
after successful import:
emit alert-success event
call onHasticDatasourceChange to load new analytic units to the panel
after un-successful import:
emit alert-error event with error message and status
Closes #406
This PR adds error / success alerts after analytic units' import.
Error:
Success:
Changes
AnalyticService
: new optionalrawError
argument inget
/post
/patch
/delete
/_analyticRequest
methods: makes_analyticRequest
re-throw the caught error instead of handling italert-success
eventonHasticDatasourceChange
to load new analytic units to the panelalert-error
event with error message and status