Skip to content

Commit 62bd17a

Browse files
author
Louis Greiner
committed
hack: instanciate node with no name and id as short name
Signed-off-by: Louis Greiner <greiner.louis@gmail.com>
1 parent e5547d9 commit 62bd17a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/models/node.model.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ export class Node {
5858
labelIds,
5959
}: NodeDto = {
6060
id: Node.incrementId(),
61-
betriebspunktName: $localize`:@@app.models.node.shortNameDefault:NEW`,
62-
fullName: $localize`:@@app.models.node.full-name-default:New node`,
61+
betriebspunktName: `id${Node.currentId}`,
62+
fullName: "",
6363
positionX: 0,
6464
positionY: 0,
6565
ports: [],

0 commit comments

Comments
 (0)