Skip to content

Commit 1ed8de8

Browse files
committed
expose observable data from base
1 parent 2020c9e commit 1ed8de8

File tree

13 files changed

+1
-17
lines changed

13 files changed

+1
-17
lines changed

src/packages/core/workspace/entity-detail/entity-detail-workspace-base.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export abstract class UmbEntityDetailWorkspaceContextBase<
3737
* @memberof UmbEntityWorkspaceContextBase
3838
*/
3939
protected readonly _data = new UmbEntityWorkspaceDataManager<DetailModelType>(this);
40+
public readonly data = this._data.current;
4041

4142
protected _getDataPromise?: Promise<any>;
4243

src/packages/data-type/tree/folder/workspace/data-type-folder-workspace.context.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export class UmbDataTypeFolderWorkspaceContext
1515
extends UmbEntityDetailWorkspaceContextBase<UmbFolderModel, UmbDataTypeFolderRepository>
1616
implements UmbSubmittableWorkspaceContext, UmbRoutableWorkspaceContext
1717
{
18-
public readonly data = this._data.current;
1918
public readonly unique = this._data.createObservablePartOfCurrent((data) => data?.unique);
2019
public readonly entityType = this._data.createObservablePartOfCurrent((data) => data?.entityType);
2120
public readonly name = this._data.createObservablePartOfCurrent((data) => data?.name);

src/packages/dictionary/workspace/dictionary-workspace.context.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ export class UmbDictionaryWorkspaceContext
1515
extends UmbEntityDetailWorkspaceContextBase<UmbDictionaryDetailModel, UmbDictionaryDetailRepository>
1616
implements UmbSubmittableWorkspaceContext, UmbRoutableWorkspaceContext
1717
{
18-
readonly data = this._data.current;
19-
2018
readonly unique = this._data.createObservablePartOfCurrent((data) => data?.unique);
2119
readonly entityType = this._data.createObservablePartOfCurrent((data) => data?.entityType);
2220

src/packages/documents/document-types/tree/folder/workspace/document-type-folder-workspace.context.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ export class UmbDocumentTypeFolderWorkspaceContext
1818
extends UmbEntityDetailWorkspaceContextBase<UmbFolderModel, UmbDocumentTypeFolderRepository>
1919
implements UmbSubmittableWorkspaceContext, UmbRoutableWorkspaceContext
2020
{
21-
public readonly data = this._data.current;
2221
public readonly unique = this._data.createObservablePartOfCurrent((data) => data?.unique);
2322
public readonly entityType = this._data.createObservablePartOfCurrent((data) => data?.entityType);
2423
public readonly name = this._data.createObservablePartOfCurrent((data) => data?.name);

src/packages/language/workspace/language/language-workspace.context.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ export class UmbLanguageWorkspaceContext
1717
{
1818
public readonly repository: UmbLanguageDetailRepository = new UmbLanguageDetailRepository(this);
1919

20-
readonly data = this._data.current;
21-
2220
readonly unique = this._data.createObservablePartOfCurrent((data) => data?.unique);
2321
readonly name = this._data.createObservablePartOfCurrent((data) => data?.name);
2422

src/packages/members/member-group/workspace/member-group/member-group-workspace.context.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ export class UmbMemberGroupWorkspaceContext
1616
extends UmbEntityDetailWorkspaceContextBase<UmbMemberGroupDetailModel>
1717
implements UmbSubmittableWorkspaceContext, UmbRoutableWorkspaceContext
1818
{
19-
readonly data = this._data.current;
20-
2119
readonly unique = this._data.createObservablePartOfCurrent((data) => data?.unique);
2220
readonly name = this._data.createObservablePartOfCurrent((data) => data?.name);
2321

src/packages/templating/partial-views/workspace/partial-view-workspace.context.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ export class UmbPartialViewWorkspaceContext
3131
>
3232
implements UmbSubmittableWorkspaceContext, UmbRoutableWorkspaceContext
3333
{
34-
public readonly data = this._data.current;
3534
public readonly unique = this._data.createObservablePartOfCurrent((data) => data?.unique);
3635
public readonly entityType = this._data.createObservablePartOfCurrent((data) => data?.entityType);
3736
public readonly name = this._data.createObservablePartOfCurrent((data) => data?.name);

src/packages/templating/scripts/tree/folder/workspace/script-type-folder-workspace.context.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export class UmbScriptFolderWorkspaceContext
1515
extends UmbEntityDetailWorkspaceContextBase<UmbFolderModel, UmbScriptFolderRepository>
1616
implements UmbSubmittableWorkspaceContext, UmbRoutableWorkspaceContext
1717
{
18-
public readonly data = this._data.current;
1918
public readonly unique = this._data.createObservablePartOfCurrent((data) => data?.unique);
2019
public readonly entityType = this._data.createObservablePartOfCurrent((data) => data?.entityType);
2120
public readonly name = this._data.createObservablePartOfCurrent((data) => data?.name);

src/packages/templating/scripts/workspace/script-workspace.context.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ export class UmbScriptWorkspaceContext
1616
extends UmbEntityDetailWorkspaceContextBase<UmbScriptDetailModel, UmbScriptDetailRepository>
1717
implements UmbSubmittableWorkspaceContext, UmbRoutableWorkspaceContext
1818
{
19-
public readonly data = this._data.current;
2019
public readonly unique = this._data.createObservablePartOfCurrent((data) => data?.unique);
2120
public readonly entityType = this._data.createObservablePartOfCurrent((data) => data?.entityType);
2221
public readonly name = this._data.createObservablePartOfCurrent((data) => data?.name);

src/packages/templating/templates/workspace/template-workspace.context.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ export class UmbTemplateWorkspaceContext
1919
{
2020
public readonly itemRepository = new UmbTemplateItemRepository(this);
2121

22-
data = this._data.current;
23-
2422
#masterTemplate = new UmbObjectState<UmbTemplateItemModel | null>(null);
2523
masterTemplate = this.#masterTemplate.asObservable();
2624

0 commit comments

Comments
 (0)