From 57e8db80ad8504029947a33a06023474e7d8fcc4 Mon Sep 17 00:00:00 2001 From: Torsten Simon Date: Fri, 12 Jul 2024 10:26:47 +0200 Subject: [PATCH] fix:keep modified author values, do not reset due to license dialog --- .../mds-editor-widget-author.component.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Frontend/src/app/features/mds/mds-editor/widgets/mds-editor-widget-author/mds-editor-widget-author.component.ts b/Frontend/src/app/features/mds/mds-editor/widgets/mds-editor-widget-author/mds-editor-widget-author.component.ts index c68721efa8..53d74d48ec 100644 --- a/Frontend/src/app/features/mds/mds-editor/widgets/mds-editor-widget-author/mds-editor-widget-author.component.ts +++ b/Frontend/src/app/features/mds/mds-editor/widgets/mds-editor-widget-author/mds-editor-widget-author.component.ts @@ -2,7 +2,7 @@ import { Component, Input, OnInit, ViewChild } from '@angular/core'; import { MatTabGroup } from '@angular/material/tabs'; import { Metadata } from 'ngx-edu-sharing-graphql'; import { BehaviorSubject } from 'rxjs'; -import { filter, tap } from 'rxjs/operators'; +import { filter, first, tap } from 'rxjs/operators'; import { Node } from '../../../../../core-module/rest/data-object'; import { RestConstants } from '../../../../../core-module/rest/rest-constants'; import { RestIamService } from '../../../../../core-module/rest/services/rest-iam.service'; @@ -135,6 +135,9 @@ export class MdsEditorWidgetAuthorComponent implements OnInit, NativeWidgetCompo return values; } private async updateValues(nodes: Node[]) { + if (this.hasChanges.value) { + return; + } this._nodes = nodes; this.refreshTabs(); }