@csmart/ngc-smart-core 0.7.93 → 0.7.94
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/bundles/csmart-ngc-smart-core.umd.js +34 -33
- package/bundles/csmart-ngc-smart-core.umd.js.map +1 -1
- package/bundles/csmart-ngc-smart-core.umd.min.js +1 -1
- package/bundles/csmart-ngc-smart-core.umd.min.js.map +1 -1
- package/esm2015/lib/smart-offender-header/smart-offender-header.component.js +32 -23
- package/esm2015/lib/smart-storage/xdm.service.js +4 -8
- package/esm5/lib/smart-offender-header/smart-offender-header.component.js +33 -23
- package/esm5/lib/smart-storage/xdm.service.js +4 -10
- package/fesm2015/csmart-ngc-smart-core.js +34 -29
- package/fesm2015/csmart-ngc-smart-core.js.map +1 -1
- package/fesm5/csmart-ngc-smart-core.js +36 -32
- package/fesm5/csmart-ngc-smart-core.js.map +1 -1
- package/lib/smart-storage/xdm.service.d.ts +1 -1
- package/package.json +1 -1
|
@@ -284,7 +284,6 @@
|
|
|
284
284
|
* Offender
|
|
285
285
|
* ************************************
|
|
286
286
|
* @param {?} selectedOffender
|
|
287
|
-
* @param {?=} redirectFunction
|
|
288
287
|
* @return {?}
|
|
289
288
|
*/
|
|
290
289
|
XdmService.prototype.setSelectedOffender = /**
|
|
@@ -292,23 +291,16 @@
|
|
|
292
291
|
* Offender
|
|
293
292
|
* ************************************
|
|
294
293
|
* @param {?} selectedOffender
|
|
295
|
-
* @param {?=} redirectFunction
|
|
296
294
|
* @return {?}
|
|
297
295
|
*/
|
|
298
|
-
function (selectedOffender
|
|
296
|
+
function (selectedOffender) {
|
|
299
297
|
var _this = this;
|
|
300
|
-
|
|
301
|
-
redirectFunction = null;
|
|
302
|
-
}
|
|
303
|
-
this.connection.promise.then(( /**
|
|
298
|
+
return this.connection.promise.then(( /**
|
|
304
299
|
* @param {?} child
|
|
305
300
|
* @return {?}
|
|
306
301
|
*/function (child) {
|
|
307
|
-
child.setSelectedOffender(selectedOffender);
|
|
308
302
|
_this.offenderSubject.next(selectedOffender);
|
|
309
|
-
|
|
310
|
-
redirectFunction();
|
|
311
|
-
}
|
|
303
|
+
child.setSelectedOffender(selectedOffender);
|
|
312
304
|
}));
|
|
313
305
|
};
|
|
314
306
|
/**
|
|
@@ -662,6 +654,7 @@
|
|
|
662
654
|
* @return {?}
|
|
663
655
|
*/
|
|
664
656
|
function (offender) {
|
|
657
|
+
var _this = this;
|
|
665
658
|
if (offender) {
|
|
666
659
|
// const o = offender.offenderName.split(',');
|
|
667
660
|
// if (o.length === 2) {
|
|
@@ -678,7 +671,11 @@
|
|
|
678
671
|
// : false,
|
|
679
672
|
// } as SelectedOffender;
|
|
680
673
|
this.selectedOffender = offender;
|
|
681
|
-
this.xdmService.setSelectedOffender(this.selectedOffender
|
|
674
|
+
this.xdmService.setSelectedOffender(this.selectedOffender).then(( /**
|
|
675
|
+
* @return {?}
|
|
676
|
+
*/function () {
|
|
677
|
+
_this.reloadCurrentRoute();
|
|
678
|
+
}));
|
|
682
679
|
}
|
|
683
680
|
};
|
|
684
681
|
/**
|
|
@@ -718,27 +715,31 @@
|
|
|
718
715
|
* @return {?}
|
|
719
716
|
*/
|
|
720
717
|
function () {
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
718
|
+
try {
|
|
719
|
+
/** @type {?} */
|
|
720
|
+
var urlTree = this.router.parseUrl(this.router.url);
|
|
721
|
+
if (urlTree
|
|
722
|
+
&& urlTree.root
|
|
723
|
+
&& urlTree.root.segments
|
|
724
|
+
&& urlTree.root.segments.length > 1) {
|
|
725
|
+
this.router.navigate([urlTree.root.segments[0].path]);
|
|
726
|
+
}
|
|
727
|
+
else if (urlTree
|
|
728
|
+
&& urlTree.root
|
|
729
|
+
&& urlTree.root.children
|
|
730
|
+
&& urlTree.root.children.primary
|
|
731
|
+
&& urlTree.root.children.primary.segments
|
|
732
|
+
&& urlTree.root.children.primary.segments.length > 1) {
|
|
733
|
+
this.router.navigate([urlTree.root.children.primary.segments[0].path]);
|
|
734
|
+
}
|
|
735
|
+
else {
|
|
736
|
+
this.router.navigate([this.router.url]);
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
catch (_a) {
|
|
740
|
+
this.router.navigateByUrl('/');
|
|
741
|
+
}
|
|
742
|
+
//window.location.reload(false);
|
|
742
743
|
};
|
|
743
744
|
/**
|
|
744
745
|
* @private
|