From ffb5d5ee7e3209847e99549298bb9df65aaee348 Mon Sep 17 00:00:00 2001 From: amentis Date: Fri, 22 Mar 2024 11:45:31 +0200 Subject: [PATCH] fix lock bug --- .../editor/dmp-blueprint-editor.component.html | 2 +- .../editor/description-editor.component.html | 12 ++++++------ dmp-frontend/src/common/base/base-editor.ts | 6 ++---- 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/dmp-frontend/src/app/ui/admin/dmp-blueprint/editor/dmp-blueprint-editor.component.html b/dmp-frontend/src/app/ui/admin/dmp-blueprint/editor/dmp-blueprint-editor.component.html index 90bd7d6f8..a6524cf93 100644 --- a/dmp-frontend/src/app/ui/admin/dmp-blueprint/editor/dmp-blueprint-editor.component.html +++ b/dmp-frontend/src/app/ui/admin/dmp-blueprint/editor/dmp-blueprint-editor.component.html @@ -15,7 +15,7 @@
- diff --git a/dmp-frontend/src/app/ui/description/editor/description-editor.component.html b/dmp-frontend/src/app/ui/description/editor/description-editor.component.html index 6f721cb22..702dbe110 100644 --- a/dmp-frontend/src/app/ui/description/editor/description-editor.component.html +++ b/dmp-frontend/src/app/ui/description/editor/description-editor.component.html @@ -47,7 +47,7 @@
- +
- - - - + + +
@@ -116,7 +116,7 @@
{{'DESCRIPTION-EDITOR.TOC.NEXT' | translate}}
chevron_right - diff --git a/dmp-frontend/src/common/base/base-editor.ts b/dmp-frontend/src/common/base/base-editor.ts index af4b6d933..60ea6f7be 100644 --- a/dmp-frontend/src/common/base/base-editor.ts +++ b/dmp-frontend/src/common/base/base-editor.ts @@ -186,14 +186,12 @@ export abstract class BaseEditor { - this.isLocked = true; + this.isLockedByUser = true; interval(this.configurationService.lockInterval).pipe(takeUntil(this._destroyed)).subscribe(() => this.touchLock(itemId)); }); } @@ -211,6 +209,6 @@ export abstract class BaseEditor