diff options
author | 2020-06-21 15:55:36 +0200 | |
---|---|---|
committer | 2020-06-22 08:43:12 +0000 | |
commit | 08084ee48ad5e97677b60860ada060e2dbdc81ad (patch) | |
tree | bdb91810ea711e5b0c3813cd0c7f3405e4d3fbd4 /cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping/templ-mapp-creation/templ-mapp-creation.component.ts | |
parent | 3579d15b41d9f786650f76c3b6a98d28f0052f1a (diff) |
Fix editor highlight.
Issue-ID: CCSDK-2471
Signed-off-by: AhmedEldeeb50 <ahmed.eldeeb.ext@orange.com>
Change-Id: I8a78dc9c8989a933d8812c2ded7a03899800612d
Diffstat (limited to 'cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping/templ-mapp-creation/templ-mapp-creation.component.ts')
-rw-r--r-- | cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping/templ-mapp-creation/templ-mapp-creation.component.ts | 11 |
1 files changed, 3 insertions, 8 deletions
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(); } } |