From: Nizamudeen Date: Tue, 14 Apr 2020 06:53:09 +0000 (+0530) Subject: mgr/dashboard: Custom Directive for verifying if user is read_only X-Git-Tag: v16.1.0~1056^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f6e1ed657125e0f394e80da5dfeb51617304d091;p=ceph.git 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 --- diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-flags-modal/osd-flags-modal.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-flags-modal/osd-flags-modal.component.html index f3094d44501..f98bc7011de 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-flags-modal/osd-flags-modal.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-flags-modal/osd-flags-modal.component.html @@ -6,7 +6,8 @@
+ novalidate + cdFormScope="osd">