From 333a9bdd83ec507f7221b3c9b70f630d5cc8b314 Mon Sep 17 00:00:00 2001
From: Arundathi Patil <arundpil@in.ibm.com>
Date: Wed, 25 Jul 2018 17:08:41 +0530
Subject: Removed hard coded values in myVNFs component

removed error messages that were hard coded in myvnfs component. Used
the variables from app-constants file for these errors.

Issue-ID: APPC-1064
Change-Id: I5acffb29e18cd0b135ee4bf206c507db26b9765c
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
---
 src/app/vnfs/myvnfs/myvnfs.component.ts | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'src')

diff --git a/src/app/vnfs/myvnfs/myvnfs.component.ts b/src/app/vnfs/myvnfs/myvnfs.component.ts
index 1a27135..d3bfc24 100644
--- a/src/app/vnfs/myvnfs/myvnfs.component.ts
+++ b/src/app/vnfs/myvnfs/myvnfs.component.ts
@@ -31,6 +31,7 @@ import { environment } from '../../../environments/environment';
 import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
 import { NgProgress } from 'ngx-progressbar';
 import { NotificationsService } from 'angular2-notifications';
+import { appConstants } from '../../../constants/app-constants'
 
 @Component({ selector: 'app-myvnfs', templateUrl: './myvnfs.component.html', styleUrls: ['./myvnfs.component.css'] })
 export class MyvnfsComponent implements OnInit, OnDestroy {
@@ -105,7 +106,7 @@ export class MyvnfsComponent implements OnInit, OnDestroy {
                 ,
                 error => {
 
-                    this.nService.error("Error", "Error in connecting to APPC Server")
+                    this.nService.error(appConstants.errors.error, appConstants.errors.connectionError)
                 }
 
             );
-- 
cgit 1.2.3-korg