From d4d171c9d7caa746b46379a1a0eb76d6423d1361 Mon Sep 17 00:00:00 2001 From: Johannes Hoermann <j.hoermann@adito.de> Date: Wed, 10 Apr 2019 08:54:29 +0200 Subject: [PATCH] =?UTF-8?q?message=20im=20onDelete=20/=20update=20wird=20n?= =?UTF-8?q?icht=20m=C3=B6glich=20sein?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../recordcontainers/jdito/onDelete.js | 2 +- .../recordcontainers/jdito/onUpdate.js | 2 +- neonContext/ObjectRelationType/ObjectRelationType.aod | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/entity/ObjectRelationType_entity/recordcontainers/jdito/onDelete.js b/entity/ObjectRelationType_entity/recordcontainers/jdito/onDelete.js index 78bb374858..0c99d246e9 100644 --- a/entity/ObjectRelationType_entity/recordcontainers/jdito/onDelete.js +++ b/entity/ObjectRelationType_entity/recordcontainers/jdito/onDelete.js @@ -18,6 +18,6 @@ if (usageCount <= 0) } else { - // TODO: server hängt bei question.showMessage + // TODO: Show message hier nicht möglich: mit Grant-Prozess ausführung komplett verhindern, wenn es diese gibt. //question.showMessage(translate.withArguments("There are still %0 relations using the type %1.", [usageCount, translate.text(vars.get("$field.SOURCE_RELATION_TITLE")) + " -> " + translate.text(vars.get("$field.DEST_RELATION_TITLE"))]), question.WARNING, translate.text("Cannot remove relation type")) } \ No newline at end of file diff --git a/entity/ObjectRelationType_entity/recordcontainers/jdito/onUpdate.js b/entity/ObjectRelationType_entity/recordcontainers/jdito/onUpdate.js index 4df0c2df9e..bca1f7d347 100644 --- a/entity/ObjectRelationType_entity/recordcontainers/jdito/onUpdate.js +++ b/entity/ObjectRelationType_entity/recordcontainers/jdito/onUpdate.js @@ -82,7 +82,7 @@ if (usageCount <= 0) } else { - // TODO: server hängt bei question.showMessage + // TODO: Show message hier nicht möglich: mit Grant-Prozess ausführung komplett verhindern, wenn es diese gibt. //question.showMessage(translate.withArguments("There are still %0 relations using the type %1.", [usageCount, translate.text(vars.get("$field.SOURCE_RELATION_TITLE")) + " -> " + translate.text(vars.get("$field.DEST_RELATION_TITLE"))]), question.WARNING, translate.text("Cannot remove relation type")) } diff --git a/neonContext/ObjectRelationType/ObjectRelationType.aod b/neonContext/ObjectRelationType/ObjectRelationType.aod index 5e82a52756..2cfbf3567d 100644 --- a/neonContext/ObjectRelationType/ObjectRelationType.aod +++ b/neonContext/ObjectRelationType/ObjectRelationType.aod @@ -3,6 +3,7 @@ <name>ObjectRelationType</name> <title>Relation type</title> <majorModelMode>DISTRIBUTED</majorModelMode> + <icon>VAADIN:SPLIT</icon> <filterview>ObjectRelationTypeFilter_view</filterview> <editview>ObjectRelationTypeEdit_view</editview> <preview>ObjectRelationTypePreview_view</preview> -- GitLab