@netgrif/components-core 6.2.5 → 6.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/public/factories/get-net-and-create-case.mjs +2 -2
- package/esm2020/lib/resources/engine-endpoint/public/public-petri-net-resource.service.mjs +2 -2
- package/esm2020/lib/view/task-view/abstract-single-task-view.component.mjs +4 -3
- package/fesm2015/netgrif-components-core.mjs +5 -4
- package/fesm2015/netgrif-components-core.mjs.map +1 -1
- package/fesm2020/netgrif-components-core.mjs +5 -4
- package/fesm2020/netgrif-components-core.mjs.map +1 -1
- package/lib/view/task-view/abstract-single-task-view.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -22987,7 +22987,7 @@ class PublicPetriNetResourceService extends PetriNetResourceService {
|
|
|
22987
22987
|
* **Request URL:** {{baseUrl}}/api/public/petrinet/{identifier}/{version}
|
|
22988
22988
|
*/
|
|
22989
22989
|
getOne(identifier, version, params) {
|
|
22990
|
-
return this.provider.get$('public/petrinet/' + identifier + '/' + version, this.SERVER_URL, params)
|
|
22990
|
+
return this.provider.get$('public/petrinet/' + btoa(identifier) + '/' + version, this.SERVER_URL, params)
|
|
22991
22991
|
.pipe(map(r => this.changeType(r, 'petriNetReferences')));
|
|
22992
22992
|
}
|
|
22993
22993
|
/**
|
|
@@ -27544,7 +27544,6 @@ class AbstractSingleTaskViewComponent extends AbstractViewWithHeadersComponent {
|
|
|
27544
27544
|
this.subRoute = this._activatedRoute.paramMap.subscribe(paramMap => {
|
|
27545
27545
|
if (!!(paramMap?.['params']?.[TaskConst.TRANSITION_ID])) {
|
|
27546
27546
|
this.transitionId = paramMap['params'][TaskConst.TRANSITION_ID];
|
|
27547
|
-
this.subPanelData.unsubscribe();
|
|
27548
27547
|
this.subPanelData = this.taskViewService.tasks$.subscribe(tasks => {
|
|
27549
27548
|
if (!!tasks && tasks.length > 0) {
|
|
27550
27549
|
this.taskPanelData.next(this.resolveTransitionTask(tasks));
|
|
@@ -27556,7 +27555,9 @@ class AbstractSingleTaskViewComponent extends AbstractViewWithHeadersComponent {
|
|
|
27556
27555
|
}
|
|
27557
27556
|
ngOnDestroy() {
|
|
27558
27557
|
super.ngOnDestroy();
|
|
27559
|
-
this.subRoute
|
|
27558
|
+
if (!!this.subRoute) {
|
|
27559
|
+
this.subRoute.unsubscribe();
|
|
27560
|
+
}
|
|
27560
27561
|
if (!!this.subPanelData) {
|
|
27561
27562
|
this.subPanelData.unsubscribe();
|
|
27562
27563
|
}
|
|
@@ -31798,7 +31799,7 @@ const publicFactoryResolver = (userService, sessionService, authService, router,
|
|
|
31798
31799
|
};
|
|
31799
31800
|
|
|
31800
31801
|
const getNetAndCreateCase = (router, route, process, caseResourceService, snackBarService, translate, publicTaskLoadingService) => {
|
|
31801
|
-
process.getNet(route.snapshot.paramMap.get('petriNetId')).pipe(mergeMap(net => {
|
|
31802
|
+
process.getNet(atob(route.snapshot.paramMap.get('petriNetId'))).pipe(mergeMap(net => {
|
|
31802
31803
|
if (net) {
|
|
31803
31804
|
publicTaskLoadingService.setLoading$(true);
|
|
31804
31805
|
const newCase = {
|