From 2203e84a0fd3308ce99e4de6ed2519e663008316 Mon Sep 17 00:00:00 2001 From: Ahmed Abbas Date: Mon, 24 Feb 2020 14:59:21 +0200 Subject: add single function to action and save it to frontend store. Issue-ID: CCSDK-2017 Signed-off-by: Ahmed Abbas Change-Id: I866eadb31bcb56aec5aa05a1dd4b0989c47c6210 --- .../packages/designer/jointjs/elements/action.element.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/jointjs') diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/jointjs/elements/action.element.ts b/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/jointjs/elements/action.element.ts index 212905814..7960e83d1 100644 --- a/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/jointjs/elements/action.element.ts +++ b/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/jointjs/elements/action.element.ts @@ -1,4 +1,5 @@ import * as joint from 'jointjs'; +import { ActionElementTypeName } from 'src/app/common/constants/app-constants'; /** * please refer to documentation in file palette.function.element.ts to get more details * about how to create new element type and define it in typescript @@ -18,7 +19,7 @@ const rectWidth = 616; const rectHeight = 381; // custom element implementation // https://resources.jointjs.com/tutorials/joint/tutorials/custom-elements.html#markup -const ActionElement = joint.shapes.standard.Rectangle.define('app.ActionElement', { +const ActionElement = joint.shapes.standard.Rectangle.define(ActionElementTypeName, { size: {width: rectWidth, height: rectHeight} }, { -- cgit 1.2.3-korg