From c78641087f481cb645096842a15efbb9feb77bfa Mon Sep 17 00:00:00 2001 From: AhmedEldeeb50 Date: Wed, 8 Apr 2020 15:59:21 +0200 Subject: Fixnig file import in script, import and template&mapping. Fixing routes redirect Issue-ID: CCSDK-2258 Signed-off-by: AhmedEldeeb50 Change-Id: Ibe9f4516884044adcea2e8e16ee59c4e1775120f --- .../package-creation/imports-tab/imports-tab.component.html | 10 +++++----- .../package-creation/scripts-tab/scripts-tab.component.html | 2 +- .../templ-mapp-creation/templ-mapp-creation.component.html | 2 +- .../package-list/package-list.component.html | 3 ++- .../package-list/package-list.component.ts | 12 ++++++++---- .../app/modules/shared-modules/header/header.component.html | 8 ++++---- .../app/modules/shared-modules/header/header.component.ts | 7 ++++++- 7 files changed, 27 insertions(+), 17 deletions(-) (limited to 'cds-ui') diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/imports-tab/imports-tab.component.html b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/imports-tab/imports-tab.component.html index d80ed16b2..cfd110283 100644 --- a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/imports-tab/imports-tab.component.html +++ b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/imports-tab/imports-tab.component.html @@ -5,7 +5,7 @@ Or you can also Import File + (click)="resetTheUploadedFiles()" data-target="#importModal">Import File @@ -47,9 +47,9 @@
- +
@@ -130,4 +130,4 @@ - + \ No newline at end of file diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/scripts-tab/scripts-tab.component.html b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/scripts-tab/scripts-tab.component.html index 5dd68ed72..6186fe6ca 100644 --- a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/scripts-tab/scripts-tab.component.html +++ b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/scripts-tab/scripts-tab.component.html @@ -5,7 +5,7 @@ Or you can also Import File + (click)="resetTheUploadedFiles()" href="#">Import File diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping/templ-mapp-creation/templ-mapp-creation.component.html b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping/templ-mapp-creation/templ-mapp-creation.component.html index 8a43b010b..86e713b9e 100644 --- a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping/templ-mapp-creation/templ-mapp-creation.component.html +++ b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/template-mapping/templ-mapp-creation/templ-mapp-creation.component.html @@ -212,7 +212,7 @@ diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/packages/packages-dashboard/package-list/package-list.component.ts b/cds-ui/designer-client/src/app/modules/feature-modules/packages/packages-dashboard/package-list/package-list.component.ts index 049801227..b7bc05ff9 100644 --- a/cds-ui/designer-client/src/app/modules/feature-modules/packages/packages-dashboard/package-list/package-list.component.ts +++ b/cds-ui/designer-client/src/app/modules/feature-modules/packages/packages-dashboard/package-list/package-list.component.ts @@ -1,6 +1,7 @@ -import {Component, OnInit} from '@angular/core'; -import {BlueprintModel} from '../../model/BluePrint.model'; -import {PackagesStore} from '../../packages.store'; +import { Component, OnInit } from '@angular/core'; +import { BlueprintModel } from '../../model/BluePrint.model'; +import { PackagesStore } from '../../packages.store'; +import { Router } from '@angular/router'; @Component({ selector: 'app-packages-list', @@ -12,7 +13,7 @@ export class PackageListComponent implements OnInit { viewedPackages: BlueprintModel[] = []; - constructor(private packagesStore: PackagesStore) { + constructor(private packagesStore: PackagesStore, private router: Router) { console.log('PackageListComponent'); this.packagesStore.state$.subscribe(state => { console.log(state); @@ -26,6 +27,9 @@ export class PackageListComponent implements OnInit { this.packagesStore.getAll(); } + view(id) { + this.router.navigate(['/packages/package', id]); + } testDispatch(bluePrint: BlueprintModel) { console.log(bluePrint.id); } diff --git a/cds-ui/designer-client/src/app/modules/shared-modules/header/header.component.html b/cds-ui/designer-client/src/app/modules/shared-modules/header/header.component.html index 502e098d3..b6dadf88a 100644 --- a/cds-ui/designer-client/src/app/modules/shared-modules/header/header.component.html +++ b/cds-ui/designer-client/src/app/modules/shared-modules/header/header.component.html @@ -5,14 +5,14 @@
--> -