From 6f74689d3f3bb2ade2aa3770428a87c90033f431 Mon Sep 17 00:00:00 2001 From: Diamantis Tziotzios Date: Thu, 8 Feb 2024 17:37:39 +0200 Subject: [PATCH] no message --- .../components/form-section/form-section.component.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dmp-frontend/src/app/ui/description/editor/description-form/components/form-section/form-section.component.ts b/dmp-frontend/src/app/ui/description/editor/description-form/components/form-section/form-section.component.ts index 0c95f1c26..becd6c097 100644 --- a/dmp-frontend/src/app/ui/description/editor/description-form/components/form-section/form-section.component.ts +++ b/dmp-frontend/src/app/ui/description/editor/description-form/components/form-section/form-section.component.ts @@ -16,6 +16,7 @@ import { ToCEntry } from '../../../table-of-contents/models/toc-entry'; import { ToCEntryType } from '../../../table-of-contents/models/toc-entry-type.enum'; import { LinkToScroll } from '../../../table-of-contents/table-of-contents.component'; import { VisibilityRulesService } from '../../visibility-rules/visibility-rules.service'; +import { MatExpansionPanel } from '@angular/material/expansion'; @Component({ @@ -71,4 +72,9 @@ export class DescriptionFormSectionComponent extends BaseComponent implements On } } } + + onAskedToScroll(id: string) { + this.panelExpanded = true; + this.askedToScroll.emit(id); + } }