From 6c6cdb878164d7ec975eed3c22f0d4d6b1fa65fa Mon Sep 17 00:00:00 2001 From: Alisa Ismailati Date: Thu, 16 May 2024 14:50:10 +0200 Subject: [PATCH] [DSC-1514] Changed "cancel" button in Metadata registry & Bulk Access Management --- .../bulk-access/bulk-access.component.html | 8 ++++---- .../bulk-access/bulk-access.component.spec.ts | 12 +++++++----- .../bulk-access/bulk-access.component.ts | 8 -------- .../settings/bulk-access-settings.component.spec.ts | 10 ---------- .../settings/bulk-access-settings.component.ts | 9 --------- .../eperson-form/eperson-form.component.html | 2 +- .../group-form/group-form.component.html | 2 +- .../collection-source.component.html | 2 +- .../profile-page-metadata-form.component.html | 2 +- .../profile-page-security-form.component.html | 2 +- .../access-control-form-container.component.html | 13 ++++++++----- .../comcol-form/comcol-form.component.html | 2 +- .../dynamic-relation-group-modal.component.html | 2 +- .../dynamic-relation-inline-group.component.html | 2 +- src/app/shared/form/form.component.html | 10 +++++----- src/app/shared/form/form.component.spec.ts | 10 +++++----- src/app/shared/form/form.component.ts | 8 ++++---- .../form/resource-policy-form.component.html | 2 +- .../accesses/section-accesses.component.html | 2 +- .../submission-section-custom-url.component.html | 2 +- .../sections/form/section-form.component.html | 2 +- .../sections/license/section-license.component.html | 2 +- .../edit/section-upload-file-edit.component.html | 2 +- src/assets/i18n/en.json5 | 6 ++++++ 24 files changed, 53 insertions(+), 69 deletions(-) diff --git a/src/app/access-control/bulk-access/bulk-access.component.html b/src/app/access-control/bulk-access/bulk-access.component.html index 624cff70b1a..65388c8ece8 100644 --- a/src/app/access-control/bulk-access/bulk-access.component.html +++ b/src/app/access-control/bulk-access/bulk-access.component.html @@ -6,10 +6,10 @@
- + + + {{ 'access-control-back' | translate }} +
-
+
-
- -
diff --git a/src/app/shared/comcol/comcol-forms/comcol-form/comcol-form.component.html b/src/app/shared/comcol/comcol-forms/comcol-form/comcol-form.component.html index 452d3ee399f..7d339bdadec 100644 --- a/src/app/shared/comcol/comcol-forms/comcol-form/comcol-form.component.html +++ b/src/app/shared/comcol/comcol-forms/comcol-form/comcol-form.component.html @@ -35,7 +35,7 @@ diff --git a/src/app/shared/form/form.component.spec.ts b/src/app/shared/form/form.component.spec.ts index e7a33c3e807..261f54ec1b4 100644 --- a/src/app/shared/form/form.component.spec.ts +++ b/src/app/shared/form/form.component.spec.ts @@ -178,7 +178,7 @@ describe('FormComponent test suite', () => { [formId]="formId" [formModel]="formModel" [displaySubmit]="displaySubmit" - [displayCancel]="displayCancel">`; + [displayReset]="displayCancel">`; testFixture = createTestComponent(html, TestComponent) as ComponentFixture; testComp = testFixture.componentInstance; @@ -205,7 +205,7 @@ describe('FormComponent test suite', () => { formComp.formId = 'testForm'; formComp.formModel = TEST_FORM_MODEL; formComp.displaySubmit = false; - formComp.displayCancel = false; + formComp.displayReset = false; form = new BehaviorSubject(formState); valid = new BehaviorSubject(false); spyOn((formComp as any).formService, 'getForm').and.returnValue(form); @@ -405,7 +405,7 @@ describe('FormComponent test suite', () => { formComp.formId = 'testFormArray'; formComp.formModel = TEST_FORM_MODEL_WITH_ARRAY; formComp.displaySubmit = false; - formComp.displayCancel = false; + formComp.displayReset = false; formFixture.detectChanges(); spyOn(store, 'dispatch'); }); @@ -460,7 +460,7 @@ describe('FormComponent test suite', () => { formComp.formId = 'testFormArray'; formComp.formModel = TEST_FORM_MODEL_WITH_ARRAY; formComp.displaySubmit = false; - formComp.displayCancel = false; + formComp.displayReset = false; formFixture.detectChanges(); spyOn(store, 'dispatch'); }); @@ -563,7 +563,7 @@ describe('FormComponent test suite', () => { formComp.formId = 'testFormArray'; formComp.formModel = TEST_FORM_MODEL_WITH_ARRAY; formComp.displaySubmit = false; - formComp.displayCancel = false; + formComp.displayReset = false; formFixture.detectChanges(); spyOn(store, 'dispatch'); }); diff --git a/src/app/shared/form/form.component.ts b/src/app/shared/form/form.component.ts index 00a33256f77..9b2af5c9e22 100644 --- a/src/app/shared/form/form.component.ts +++ b/src/app/shared/form/form.component.ts @@ -53,9 +53,9 @@ export class FormComponent implements OnDestroy, OnInit { @Input() displaySubmit = true; /** - * A boolean that indicate if to display form's cancel button + * A boolean that indicate if to display form's reset button */ - @Input() displayCancel = true; + @Input() displayReset = true; /** * A String that indicate the entity type of the item @@ -78,9 +78,9 @@ export class FormComponent implements OnDestroy, OnInit { @Input() submitLabel = 'form.submit'; /** - * i18n key for the cancel button + * i18n key for the reset button */ - @Input() cancelLabel = 'form.cancel'; + @Input() resetLabel = 'form.reset'; /** * An array of DynamicFormControlModel type diff --git a/src/app/shared/resource-policies/form/resource-policy-form.component.html b/src/app/shared/resource-policies/form/resource-policy-form.component.html index 66c1fc400e9..5ee312c7377 100644 --- a/src/app/shared/resource-policies/form/resource-policy-form.component.html +++ b/src/app/shared/resource-policies/form/resource-policy-form.component.html @@ -4,7 +4,7 @@ [formId]="formId" [formModel]="formModel" [displaySubmit]="false" - [displayCancel]="false"> + [displayReset]="false">
diff --git a/src/app/submission/sections/accesses/section-accesses.component.html b/src/app/submission/sections/accesses/section-accesses.component.html index 1ba2d4fe6d1..5a119735935 100644 --- a/src/app/submission/sections/accesses/section-accesses.component.html +++ b/src/app/submission/sections/accesses/section-accesses.component.html @@ -2,6 +2,6 @@ [formId]="formId" [formModel]="formModel" [displaySubmit]="false" - [displayCancel]="false" + [displayReset]="false" (dfChange)="onChange($event)" (removeArrayItem)="onRemove($event)"> diff --git a/src/app/submission/sections/custom-url/submission-section-custom-url.component.html b/src/app/submission/sections/custom-url/submission-section-custom-url.component.html index 716fd9625c1..5360adb1c2f 100644 --- a/src/app/submission/sections/custom-url/submission-section-custom-url.component.html +++ b/src/app/submission/sections/custom-url/submission-section-custom-url.component.html @@ -6,7 +6,7 @@
{{frontendUrl}}/ -
diff --git a/src/app/submission/sections/form/section-form.component.html b/src/app/submission/sections/form/section-form.component.html index 33a282bd3d4..98815832b75 100644 --- a/src/app/submission/sections/form/section-form.component.html +++ b/src/app/submission/sections/form/section-form.component.html @@ -3,7 +3,7 @@ [formId]="formId" [formModel]="formModel" [displaySubmit]="false" - [displayCancel]="false" + [displayReset]="false" [entityType]="entityType" (dfChange)="onChange($event)" (dfFocus)="onFocus($event)" diff --git a/src/app/submission/sections/license/section-license.component.html b/src/app/submission/sections/license/section-license.component.html index d807f43d172..ac1939456f9 100644 --- a/src/app/submission/sections/license/section-license.component.html +++ b/src/app/submission/sections/license/section-license.component.html @@ -4,5 +4,5 @@ [formModel]="formModel" [formLayout]="formLayout" [displaySubmit]="displaySubmit" - [displayCancel]="false" + [displayReset]="false" (dfChange)="onChange($event)"> diff --git a/src/app/submission/sections/upload/file/edit/section-upload-file-edit.component.html b/src/app/submission/sections/upload/file/edit/section-upload-file-edit.component.html index 2baa6c1555a..baf18c8893a 100644 --- a/src/app/submission/sections/upload/file/edit/section-upload-file-edit.component.html +++ b/src/app/submission/sections/upload/file/edit/section-upload-file-edit.component.html @@ -12,7 +12,7 @@