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){ + + } + } +