aboutsummaryrefslogtreecommitdiffstats
path: root/src/app/shared/services/utilityService/utility.service.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/shared/services/utilityService/utility.service.ts')
-rw-r--r--src/app/shared/services/utilityService/utility.service.ts18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/app/shared/services/utilityService/utility.service.ts b/src/app/shared/services/utilityService/utility.service.ts
index a683f33..8a9f945 100644
--- a/src/app/shared/services/utilityService/utility.service.ts
+++ b/src/app/shared/services/utilityService/utility.service.ts
@@ -30,6 +30,7 @@ import { appConstants } from '../../../../constants/app-constants';
@Injectable()
export class UtilityService {
+ clName= "UtilityService";
public putAction = appConstants.messages.artifactUploadAction;
public getAction = appConstants.messages.artifactgetAction;
private retrievalSuccessMessage = appConstants.messages.retrievalSuccessMessage;
@@ -44,6 +45,23 @@ export class UtilityService {
constructor(private notificationService: NotificationsService) {
}
+ public setTracelvl( tlvl: number ) {
+ // console.log( this.clName+": setTracelvl: arg="+tlvl );
+ let tracelvl= tlvl;
+ if( tracelvl == null || tracelvl == undefined ) tracelvl= 0;
+ localStorage["Tracelvl"]= tracelvl;
+ }
+
+ public getTracelvl() : number {
+ let tracelvl= localStorage["Tracelvl"];
+ // console.log( this.clName+": getTracelvl: locS: tracelvl="+tracelvl );
+ if( tracelvl == null || tracelvl == undefined ) {
+ tracelvl=0; localStorage["Tracelvl"]= tracelvl;
+ };
+ // console.log( this.clName+": getTracelvl: tracelvl="+tracelvl );
+ return tracelvl;
+ };
+
public randomId() {
let x = (new Date().getUTCMilliseconds()) * Math.random();
return (x + '').substr(4, 12);