From 52ab4389050f11c8eaa31edd9a98ec22e9f81378 Mon Sep 17 00:00:00 2001 From: mchouliara Date: Tue, 13 Aug 2024 15:55:21 +0300 Subject: [PATCH] view inactive users on deleted plan/description, fix wording, small ui fixes --- .../editor/description-editor.component.html | 13 +- .../editor/description-editor.component.ts | 2 +- .../description-overview.component.html | 25 +-- .../description-overview.component.ts | 2 +- .../overview/plan-overview.component.html | 25 +-- .../plan/overview/plan-overview.component.ts | 2 +- .../plan-editor.component.html | 2 +- .../plan-editor.component.ts | 4 +- frontend/src/assets/config/config.json | 151 ------------------ frontend/src/assets/i18n/en.json | 1 + 10 files changed, 40 insertions(+), 187 deletions(-) delete mode 100644 frontend/src/assets/config/config.json diff --git a/frontend/src/app/ui/description/editor/description-editor.component.html b/frontend/src/app/ui/description/editor/description-editor.component.html index 705ae09fc..1f4cf1124 100644 --- a/frontend/src/app/ui/description/editor/description-editor.component.html +++ b/frontend/src/app/ui/description/editor/description-editor.component.html @@ -7,14 +7,15 @@
- + @if(!viewOnly){
{{'DESCRIPTION-EDITOR.TITLE-ADD-DESCRIPTION' | translate}}
{{'DESCRIPTION-EDITOR.TITLE-EDIT-DESCRIPTION' | translate}}
-
{{ formGroup.get('label').value }} {{'DESCRIPTION-EDITOR.UNSAVED-CHANGES' | translate}}
-
- -
{{'DESCRIPTION-EDITOR.TITLE-PREVIEW-DESCRIPTION' | translate}}
-
+
+ {{ formGroup.get('label').value }} {{'DESCRIPTION-EDITOR.UNSAVED-CHANGES' | translate}} +
+ }@else { +
{{'DESCRIPTION-EDITOR.TITLE-PREVIEW-DESCRIPTION' | translate}}
+ }
{{'DESCRIPTION-EDITOR.TO-PLAN' | translate}}
: {{ item?.plan?.label }}
diff --git a/frontend/src/app/ui/description/editor/description-editor.component.ts b/frontend/src/app/ui/description/editor/description-editor.component.ts index 9d2ccbfed..32091a8bc 100644 --- a/frontend/src/app/ui/description/editor/description-editor.component.ts +++ b/frontend/src/app/ui/description/editor/description-editor.component.ts @@ -148,7 +148,7 @@ export class DescriptionEditorComponent extends BaseEditor
-
- -
- -
- -
-
+
+ @if(isActive && (canEdit || canAnnotate) && isDraftDescription(description) && !isLocked){ + + }@else { + @if(!isPublicView){ + + } + } +
-
- -
- -
- -
-
+
+ @if(isActive && canEditPlan(plan) && !lockStatus){ + + } @else { + @if(!isPublicView){ + + } + } +