From: Nizamudeen A Date: Sat, 23 Oct 2021 19:06:51 +0000 (+0530) Subject: mgr/dashboard: Fix for form inside form closing issue X-Git-Tag: v17.1.0~601^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F43639%2Fhead;p=ceph.git mgr/dashboard: Fix for form inside form closing issue After the angular 11 upgrade the form in form behaviour got broken when one tries to close that "embedded" form. This commit is to fix that behaviour. Fixes: https://tracker.ceph.com/issues/53020 Signed-off-by: Nizamudeen A --- diff --git a/src/pybind/mgr/dashboard/frontend/cypress/integration/orchestrator/workflow/nfs/nfs-export.po.ts b/src/pybind/mgr/dashboard/frontend/cypress/integration/orchestrator/workflow/nfs/nfs-export.po.ts index 91dfdf48d1015..03b3bb18dac84 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/integration/orchestrator/workflow/nfs/nfs-export.po.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/integration/orchestrator/workflow/nfs/nfs-export.po.ts @@ -28,6 +28,11 @@ export class NFSPageHelper extends PageHelper { cy.get('button[name=add_client]').click({ force: true }); cy.get('input[name=addresses]').type(client['addresses']); + // Check if we can remove clients and add it again + cy.get('span[name=remove_client]').click({ force: true }); + cy.get('button[name=add_client]').click({ force: true }); + cy.get('input[name=addresses]').type(client['addresses']); + cy.get('cd-submit-button').click(); } diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-target-form/iscsi-target-form.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-target-form/iscsi-target-form.component.html index eb4b9e3a6d048..852866a86db2c 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-target-form/iscsi-target-form.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-target-form/iscsi-target-form.component.html @@ -337,7 +337,7 @@ formArrayName="initiators">
+ [formGroup]="initiator">
Initiator: {{ initiator.getValue('client_iqn') }}