]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: Make preventDefault work with 400 errors 27389/head
authorStephan Müller <smueller@suse.com>
Thu, 21 Feb 2019 10:53:46 +0000 (11:53 +0100)
committerRicardo Marques <rimarques@suse.com>
Thu, 4 Apr 2019 22:28:33 +0000 (23:28 +0100)
commit0b06abace0a25b6cb597d795f9db42d3b6fd1620
treecff05552ede36c59219d86329425765391d06b6e
parent62a0d7268da68e8f4be61eb003bd5522076edfeb
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>
(cherry picked from commit 5aa984cc6c5a737e2dfcc7806f0fe48d1b41d1c5)
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