From 95be0e2ec09767abeee9f78183b01447ec1826c0 Mon Sep 17 00:00:00 2001 From: Renaud Michotte Date: Tue, 15 Dec 2020 11:04:00 +0100 Subject: [PATCH] templates: restrict load template for resource creation. To avoid parent reference problem, the 'load template' button should be only displayed for resource creation (and hide when a resource is edited). Closes rero/rero-ils#1471. Co-Authored-by: Renaud Michotte --- .../src/lib/record/editor/editor.component.html | 2 +- .../ng-core/src/lib/record/editor/editor.component.ts | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/projects/rero/ng-core/src/lib/record/editor/editor.component.html b/projects/rero/ng-core/src/lib/record/editor/editor.component.html index ec11464b..c6f1f7db 100644 --- a/projects/rero/ng-core/src/lib/record/editor/editor.component.html +++ b/projects/rero/ng-core/src/lib/record/editor/editor.component.html @@ -36,7 +36,7 @@ {{ 'Cancel' | translate }} -