Update entity-detail-workspace-base.ts

This commit is contained in:
Mads Rasmussen
2024-09-24 22:04:31 +02:00
parent 424828e8f6
commit 8a65a2a022

View File

@@ -45,7 +45,7 @@ export abstract class UmbEntityDetailWorkspaceContextBase<
readonly parentUnique = this.#parent.asObservablePart((parent) => (parent ? parent.unique : undefined));
readonly parentEntityType = this.#parent.asObservablePart((parent) => (parent ? parent.entityType : undefined));
#activePathSegment = '';
#routerActiveLocalPath = '';
#initResolver?: () => void;
#initialized = false;
@@ -169,11 +169,11 @@ export abstract class UmbEntityDetailWorkspaceContextBase<
}
protected _setActivePathSegment(segment: string) {
this.#activePathSegment = segment;
this.#routerActiveLocalPath = segment;
}
protected _getActivePathSegment() {
return this.#activePathSegment;
return this.#routerActiveLocalPath;
}
/**