🆙 Fix Catalog Edit

This commit is contained in:
duckietm
2026-05-21 16:58:47 +02:00
parent 49917ed49b
commit 5002b2fcdc
8 changed files with 50 additions and 23 deletions
+7
View File
@@ -6,6 +6,7 @@ export class CatalogNode implements ICatalogNode
private _depth: number = 0;
private _localization: string = '';
private _pageId: number = -1;
private _parentId: number = -1;
private _pageName: string = '';
private _iconId: number = 0;
private _children: ICatalogNode[];
@@ -21,6 +22,7 @@ export class CatalogNode implements ICatalogNode
this._parent = parent;
this._localization = node.localization;
this._pageId = node.pageId;
this._parentId = node.parentId;
this._pageName = node.pageName;
this._iconId = node.icon;
this._children = [];
@@ -82,6 +84,11 @@ export class CatalogNode implements ICatalogNode
return this._pageId;
}
public get parentId(): number
{
return this._parentId;
}
public get pageName(): string
{
return this._pageName;
+1
View File
@@ -10,6 +10,7 @@ export interface ICatalogNode
readonly isLeaf: boolean;
readonly localization: string;
readonly pageId: number;
readonly parentId: number;
readonly pageName: string;
readonly iconId: number;
readonly children: ICatalogNode[];