]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: Make preventDefault work with 400 errors 26561/head
authorStephan Müller <smueller@suse.com>
Thu, 21 Feb 2019 10:53:46 +0000 (11:53 +0100)
committerStephan Müller <smueller@suse.com>
Mon, 25 Mar 2019 09:12:12 +0000 (10:12 +0100)
commit5aa984cc6c5a737e2dfcc7806f0fe48d1b41d1c5
tree5d27abadfd2e511825d6cfbec7746c8d1c487eea
parentc9dbaf279eae647b91e74c479acaaffd3f9ed900
mgr/dashboard: Make preventDefault work with 400 errors

The problem was that, if a error with the status code 400 was
received by the error interceptor the "timeoutId" was not tracked,
therefor "preventDefault" didn't prevent anything as "timeoutId"
was undefined.

Fixes: https://tracker.ceph.com/issues/38418
Signed-off-by: Stephan Müller <smueller@suse.com>
src/pybind/mgr/dashboard/frontend/src/app/shared/services/api-interceptor.service.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/services/api-interceptor.service.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/services/notification.service.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/services/notification.service.ts