From 08084ee48ad5e97677b60860ada060e2dbdc81ad Mon Sep 17 00:00:00 2001 From: AhmedEldeeb50 Date: Sun, 21 Jun 2020 15:55:36 +0200 Subject: Fix editor highlight. Issue-ID: CCSDK-2471 Signed-off-by: AhmedEldeeb50 Change-Id: I8a78dc9c8989a933d8812c2ded7a03899800612d --- .../templ-mapp-creation/templ-mapp-creation.component.ts | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping/templ-mapp-creation/templ-mapp-creation.component.ts') diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping/templ-mapp-creation/templ-mapp-creation.component.ts b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping/templ-mapp-creation/templ-mapp-creation.component.ts index 5feb76e06..334b3f484 100644 --- a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping/templ-mapp-creation/templ-mapp-creation.component.ts +++ b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping/templ-mapp-creation/templ-mapp-creation.component.ts @@ -9,7 +9,6 @@ import { Mapping, MappingAdapter } from '../../mapping-models/mappingAdapter.mod import { PackageCreationUtils } from '../../package-creation.utils'; import { JsonConvert, Any } from 'json2typescript'; import { ToastrService } from 'ngx-toastr'; -import { ActivatedRoute } from '@angular/router'; import { SharedService } from '../shared-service'; declare var $: any; @@ -54,16 +53,11 @@ export class TemplMappCreationComponent implements OnInit, OnDestroy { private templateStore: TemplateStore, private packageCreationUtils: PackageCreationUtils, private toastr: ToastrService, - private router: ActivatedRoute, private sharedService: SharedService ) { } ngOnInit() { - if (this.router.snapshot.paramMap.has('id')) { - console.log('URL contains Id'); - this.sharedService.enableEdit(); - } this.templateStore.state$.subscribe(templateInfo => { // init Template&mapping vars console.log('Oninit'); @@ -118,8 +112,8 @@ export class TemplMappCreationComponent implements OnInit, OnDestroy { this.dtOptions = { pagingType: 'full_numbers', pageLength: 25, - // destroy: true, - // retrieve: true, + destroy: true, + retrieve: true, }; } @@ -382,6 +376,7 @@ export class TemplMappCreationComponent implements OnInit, OnDestroy { ngOnDestroy(): void { // Do not forget to unsubscribe the event this.dtTrigger.unsubscribe(); + this.resTableDtTrigger.unsubscribe(); } } -- cgit 1.2.3-korg