]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: Custom Directive for verifying if user is read_only 34545/head
authorNizamudeen <nia@redhat.com>
Tue, 14 Apr 2020 06:53:09 +0000 (12:23 +0530)
committernizamial09 <nia@redhat.com>
Tue, 15 Sep 2020 15:26:40 +0000 (20:56 +0530)
commitf6e1ed657125e0f394e80da5dfeb51617304d091
tree04a5b75789805bad91e6a44347533f80741dc78e
parenta1f8589679b6e3614e4d921055a545c182e8abf7
mgr/dashboard: Custom Directive for verifying if user is read_only

This commit introduces two new Custom Directives: `FormInputDisableDirective` and `FormScopeDirective`.
By using the `cdFormScope` attribute of the directive we can customize the behaviour of the modal components.

Signed-off-by: Nizamudeen <nia@redhat.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-flags-modal/osd-flags-modal.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-pg-scrub-modal/osd-pg-scrub-modal.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-recv-speed-modal/osd-recv-speed-modal.component.html
src/pybind/mgr/dashboard/frontend/src/app/shared/directives/directives.module.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/directives/form-input-disable.directive.spec.ts [new file with mode: 0644]
src/pybind/mgr/dashboard/frontend/src/app/shared/directives/form-input-disable.directive.ts [new file with mode: 0644]
src/pybind/mgr/dashboard/frontend/src/app/shared/directives/form-scope.directive.spec.ts [new file with mode: 0644]
src/pybind/mgr/dashboard/frontend/src/app/shared/directives/form-scope.directive.ts [new file with mode: 0644]