aboutsummaryrefslogtreecommitdiffstats
path: root/src/app/shared/services
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/shared/services')
-rw-r--r--src/app/shared/services/mapping-editor.service.ts6
-rw-r--r--src/app/shared/services/utilityService/utility.service.ts18
2 files changed, 23 insertions, 1 deletions
diff --git a/src/app/shared/services/mapping-editor.service.ts b/src/app/shared/services/mapping-editor.service.ts
index c27d95e..b9e2b53 100644
--- a/src/app/shared/services/mapping-editor.service.ts
+++ b/src/app/shared/services/mapping-editor.service.ts
@@ -71,6 +71,7 @@ export class MappingEditorService {
private _navItem = {};
private _observer: Observer<any>;
private referenceList = [];
+ newObject: any;
constructor() {
this.navChange$ = new Observable(observer =>
@@ -103,6 +104,9 @@ export class MappingEditorService {
saveLatestAction(data) {
this.latestAction = data;
}
+ selectedObj(data) {
+ this.newObject = data;
+ }
saveLatestIdentifier(identifier) {
this.identifier = identifier;
@@ -589,4 +593,4 @@ export class MappingEditorService {
}
-} \ No newline at end of file
+}
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);