@csmart/ngc-smart-core 1.14.27 → 1.14.29
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.
|
@@ -539,10 +539,11 @@ class SmartNavbarComponent {
|
|
|
539
539
|
return this.authnService.instance.getAllAccounts().length > 0;
|
|
540
540
|
}
|
|
541
541
|
getAppModuleUrl(config) {
|
|
542
|
-
return
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
: config.url
|
|
542
|
+
return (config.appModuleId === 'PPMASRVW') ? config.url
|
|
543
|
+
: config && this.selectedOffender && config.appModuleId === 'PPMAS'
|
|
544
|
+
? `${config.url}&OffenderId=${this.selectedOffender.offenderId}`
|
|
545
|
+
: this.selectedOffender ? `${config.url}/?offenderId=${this.selectedOffender.offenderId}`
|
|
546
|
+
: config.url;
|
|
546
547
|
}
|
|
547
548
|
hasAppModulePermission(appModuleId) {
|
|
548
549
|
if (this.loginStaff &&
|