]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: Change deletion link to modal only
authorStephan Müller <smueller@suse.com>
Mon, 16 Apr 2018 11:44:38 +0000 (13:44 +0200)
committerStephan Müller <smueller@suse.com>
Tue, 24 Apr 2018 11:57:43 +0000 (13:57 +0200)
commit63ae858582ec48487e28acf59a4dc315bd423303
tree24be8ef12a2f4af70999158e965b34984499ab36
parentf2096e9378b84ba437b15a5537c2ead73c38f0eb
mgr/dashboard: Change deletion link to modal only

Due to CSS problems the link solution wasn't the best way, now it will
represent only the modal content. The downside of this solution is that
it put's the burden on the developer to use it the right way and import
a view things to get it working. But on the upside CSS styles will work
as expected.

The unit test example was updated accordingly this way it should be easy
to understand how it can be implemented the right way.

Signed-off-by: Stephan Müller <smueller@suse.com>
src/pybind/mgr/dashboard/frontend/src/app/shared/components/components.module.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/components/deletion-link/deletion-link.component.html [deleted file]
src/pybind/mgr/dashboard/frontend/src/app/shared/components/deletion-link/deletion-link.component.scss [deleted file]
src/pybind/mgr/dashboard/frontend/src/app/shared/components/deletion-link/deletion-link.component.spec.ts [deleted file]
src/pybind/mgr/dashboard/frontend/src/app/shared/components/deletion-link/deletion-link.component.ts [deleted file]
src/pybind/mgr/dashboard/frontend/src/app/shared/components/deletion-modal/deletion-modal.component.html [new file with mode: 0644]
src/pybind/mgr/dashboard/frontend/src/app/shared/components/deletion-modal/deletion-modal.component.scss [new file with mode: 0644]
src/pybind/mgr/dashboard/frontend/src/app/shared/components/deletion-modal/deletion-modal.component.spec.ts [new file with mode: 0644]
src/pybind/mgr/dashboard/frontend/src/app/shared/components/deletion-modal/deletion-modal.component.ts [new file with mode: 0644]