From bf70baf7fe4803dbc8e2c4088c9c8e3566f67063 Mon Sep 17 00:00:00 2001 From: hwhh Date: Tue, 17 Oct 2023 11:25:51 -0400 Subject: [PATCH 1/2] Add getName function to Node class Allow client to get the name of the tab. --- src/model/Node.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/model/Node.ts b/src/model/Node.ts index 157076ed..d8c2acd1 100755 --- a/src/model/Node.ts +++ b/src/model/Node.ts @@ -52,6 +52,10 @@ export abstract class Node { return id as string; } + getName() { + return this._attributes.name as string; + } + getModel() { return this._model; } From 841963f664fa6f376b42c021d050e4daa265d981 Mon Sep 17 00:00:00 2001 From: hwhh Date: Thu, 19 Oct 2023 21:20:15 -0400 Subject: [PATCH 2/2] Update Node.ts --- src/model/Node.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/model/Node.ts b/src/model/Node.ts index d8c2acd1..a3644948 100755 --- a/src/model/Node.ts +++ b/src/model/Node.ts @@ -52,8 +52,8 @@ export abstract class Node { return id as string; } - getName() { - return this._attributes.name as string; + getAttributes() { + return this._attributes; } getModel() {