Skip to content
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.

Commit

Permalink
fix: Navigation (#328)
Browse files Browse the repository at this point in the history
* fix: Navigation

Signed-off-by: Arthur Bleil <[email protected]>

* fix: horus

Signed-off-by: Arthur Bleil <[email protected]>
  • Loading branch information
arthurbleilzup authored Mar 29, 2022
1 parent d7a9cf2 commit 9e96f51
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
4 changes: 3 additions & 1 deletion horusec-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
"97a887af31ff815d313fc4eb7a010b33c3dcf505f66d03a37c7fc43d7901c906",
"a8879d8e44b52578a5fcd53abe195e9bfa4402190dce6f7c688f79ba2558930b",
"3d80a08186f5e59dd17534b6c47b728cd10095533b4226a81231eb7438da207a",
"2f8461d840f8041b398adfd3ae78c66f7615bc6f447077f805db29e4adb8199f"
"2f8461d840f8041b398adfd3ae78c66f7615bc6f447077f805db29e4adb8199f",
"5754333b1092926dfd5fa0ab1bebe57b5d6742c63c23bdc3c68773921750eb1b",
"37ab16eb3e933c75be093d679893d3e53181f289aa0bc3d3dae90cd4826dddbc"
]
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zup-it/beagle-angular",
"version": "2.0.0",
"version": "2.0.1",
"license": "Apache-2.0",
"licenses": [
{
Expand Down
1 change: 1 addition & 0 deletions src/codegen/compiled/beagle.module/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export function createModuleString({
BeagleProvider,
{
provide: BeagleAngularNavigatorService,
useFactory: (provider: BeagleProvider) => new BeagleAngularNavigatorService(provider),
deps: [BeagleProvider],
},
],
Expand Down
10 changes: 6 additions & 4 deletions src/runtime/AbstractBeagleRemoteView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,12 @@ export abstract class AbstractBeagleRemoteView implements AfterViewInit, OnDestr
}

updateView = (uiTree: IdentifiableBeagleUIElement<any>) => {
this.ngZone.run(() => {
this.tree = uiTree && Object.keys(uiTree).length > 0 ? uiTree : null
this.changeDetector.detectChanges()
})
if (!this.changeDetector['destroyed']) {
this.ngZone.run(() => {
this.tree = uiTree && Object.keys(uiTree).length > 0 ? uiTree : null
this.changeDetector.detectChanges()
})
}
}

elementIdentity = (index: number, element: IdentifiableBeagleUIElement<any>) => element.id
Expand Down

0 comments on commit 9e96f51

Please sign in to comment.