diff --git a/apps/datahub-e2e/src/e2e/home.cy.ts b/apps/datahub-e2e/src/e2e/home.cy.ts
index cbab84159c..339b81e756 100644
--- a/apps/datahub-e2e/src/e2e/home.cy.ts
+++ b/apps/datahub-e2e/src/e2e/home.cy.ts
@@ -78,7 +78,7 @@ describe('home', () => {
})
})
- describe.only('my favorites button', () => {
+ describe('my favorites button', () => {
beforeEach(() => {
cy.login()
cy.clearFavorites()
diff --git a/apps/datahub/src/app/record/record-apis/record-apis.component.html b/apps/datahub/src/app/record/record-apis/record-apis.component.html
index 23dd9ac594..8b0c13d6fa 100644
--- a/apps/datahub/src/app/record/record-apis/record-apis.component.html
+++ b/apps/datahub/src/app/record/record-apis/record-apis.component.html
@@ -27,3 +27,27 @@
>
+
+
+
+
+ record.metadata.api.form.title
+
+
+
+
+
+
diff --git a/apps/datahub/src/app/record/record-apis/record-apis.component.spec.ts b/apps/datahub/src/app/record/record-apis/record-apis.component.spec.ts
index da34ff5128..04e0592148 100644
--- a/apps/datahub/src/app/record/record-apis/record-apis.component.spec.ts
+++ b/apps/datahub/src/app/record/record-apis/record-apis.component.spec.ts
@@ -51,4 +51,12 @@ describe('RecordApisComponent', () => {
expect(apiLink).toEqual(serviceDistributionMock)
})
})
+
+ describe('#closeForm', () => {
+ it('should pass undefined to facade.selectedApiLink$', async () => {
+ component.closeRecordApiForm()
+ const apiLink = await firstValueFrom(facade.selectedApiLink$)
+ expect(apiLink).toBeUndefined()
+ })
+ })
})
diff --git a/apps/datahub/src/app/record/record-apis/record-apis.component.ts b/apps/datahub/src/app/record/record-apis/record-apis.component.ts
index 7d0f8928f1..3b6d1ddef4 100644
--- a/apps/datahub/src/app/record/record-apis/record-apis.component.ts
+++ b/apps/datahub/src/app/record/record-apis/record-apis.component.ts
@@ -1,10 +1,4 @@
-import {
- Component,
- ChangeDetectionStrategy,
- Output,
- EventEmitter,
- Input,
-} from '@angular/core'
+import { Component, ChangeDetectionStrategy } from '@angular/core'
import { DatasetServiceDistribution } from '@geonetwork-ui/common/domain/model/record'
import { MdViewFacade } from '@geonetwork-ui/feature/record'
@@ -20,4 +14,8 @@ export class RecordApisComponent {
openRecordApiForm(link: DatasetServiceDistribution) {
this.facade.selectedApiLink$.next(link)
}
+
+ closeRecordApiForm() {
+ this.facade.selectedApiLink$.next(undefined)
+ }
}
diff --git a/apps/datahub/src/app/record/record-metadata/record-metadata.component.html b/apps/datahub/src/app/record/record-metadata/record-metadata.component.html
index 757db1212f..e310d7e4c9 100644
--- a/apps/datahub/src/app/record/record-metadata/record-metadata.component.html
+++ b/apps/datahub/src/app/record/record-metadata/record-metadata.component.html
@@ -127,30 +127,6 @@
>
-
-
-
-
- record.metadata.api.form.title
-
-
-
-
-
-