]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: Add error handling on the frontend 21820/head
authorTiago Melo <tmelo@suse.com>
Fri, 4 May 2018 14:16:51 +0000 (15:16 +0100)
committerTiago Melo <tmelo@suse.com>
Wed, 9 May 2018 09:15:17 +0000 (10:15 +0100)
commitcf4adb4da383917a0388bf220158f2d574b6aa07
treecde4d8a6a5ebc5974f0ca1cd35d2d994bb9d29cb
parenta3cf914ded6f3e8c9c8a9aee2b49b60e62580aaa
mgr/dashboard: Add error handling on the frontend

Now all error notifications are processed on the api-interceptor-service,
removing the need to handle them on every api request.

Signed-off-by: Tiago Melo <tmelo@suse.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-form/rbd-form.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-snapshot-form/rbd-snapshot-form.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-snapshot-list/rbd-snapshot-list.component.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/enum/components.enum.ts [new file with mode: 0644]
src/pybind/mgr/dashboard/frontend/src/app/shared/models/task-exception.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/services/api-interceptor.service.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/services/task-manager-message.service.ts