]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: Fix duplicate error messages 23287/head
authorStephan Müller <smueller@suse.com>
Fri, 27 Jul 2018 14:15:07 +0000 (16:15 +0200)
committerStephan Müller <smueller@suse.com>
Fri, 27 Jul 2018 14:26:59 +0000 (16:26 +0200)
commit70d47a5b1fd194879ead1a2730add3019d96410f
tree40b9e832f15e15339e68ec3e8ad6e778314da405
parent794126b7b952e7f6de3f7a65497c2e2d1498bfd0
mgr/dashboard: Fix duplicate error messages

Duplicate error messages currently appear if the task wrapper service is
used. It calls 'notifyTask' on a failed task, this would be fine if
we didn't have the API interceptor, which watches all API requests and
triggers 'notifyTask' itself if an error appears.

Fixes issue #25139

Signed-off-by: Stephan Müller <smueller@suse.com>
src/pybind/mgr/dashboard/frontend/src/app/shared/services/task-wrapper.service.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/services/task-wrapper.service.ts