Made use of ng2-bootstrap-modal.

This will remove all the duplicate code of ng-bootstrap popup.

Made following changes to the below files,

1. app.module.ts:
	a. added the confirm modal component to declarations and entryComponents section because component will be created dynamically.
	b. imported BootstrapModalModule from ng2-bootstrap-modal
2. vnfs.module.ts:
	a. removed the confirm modal component from declarations and
	   entryComponents section as it is already declared as part of
	   app.module.ts.
3. confirm.component.ts:
	a. added two more varibles 'cancelButtonText' and
	   'confirmButtonText' to ConfirmModel interface. these values will
	    be sent by the caller code and the button lables will be set
	    dynamically.
	b. implemented cancel method that sets the modal result value to
	   false, this is called on click of close
	   button.
4. about.component.ts:
	a. Made use of confirm.component.ts.
	b. on click of 'view change log' buton we are calling open()
	   method which inturn opens the confirm modal component.
5. about.component.html:
	a. Removed call to versionLogFile() method as this method is
	   called from open() method.
	b. Removed the ng-template code of ng-bootstrap which is no more
	   required.

Issue-ID: APPC-1088
Change-Id: I9de545debed145ef35e31807acd1e9bd9cc2bad4
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
5 files changed
tree: b438e3f54b156ce7f520f075e159daa523e8f379
  1. CdtProxyService/
  2. e2e/
  3. nginx/
  4. src/
  5. .angular-cli.json
  6. .classpath
  7. .gitignore
  8. .project
  9. assemble_dist_zip.xml
  10. Dockerfile
  11. karma.conf.js
  12. LICENSE.txt
  13. package.json
  14. pom.xml
  15. protractor.conf.js
  16. README.md
  17. tsconfig.json
  18. tslint.json
  19. version.properties
README.md

============LICENSE_START==========================================

ONAP : APPC-CDT

===================================================================

Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.

===================================================================

Unless otherwise specified, all software contained herein is licensed

under the Apache License, Version 2.0 (the License);

you may not use this software except in compliance with the License.

You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software

distributed under the License is distributed on an "AS IS" BASIS,

WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

See the License for the specific language governing permissions and

limitations under the License.

Unless otherwise specified, all documentation contained herein is licensed

under the Creative Commons License, Attribution 4.0 Intl. (the License);

you may not use this documentation except in compliance with the License.

You may obtain a copy of the License at

https://creativecommons.org/licenses/by/4.0/

Unless required by applicable law or agreed to in writing, documentation

distributed under the License is distributed on an "AS IS" BASIS,

WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

See the License for the specific language governing permissions and

limitations under the License.

ECOMP is a trademark and service mark of AT&T Intellectual Property.

============LICENSE_END============================================

TestApp

This project was generated with Angular CLI version 1.2.3.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the -prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor. Before running the tests make sure you are serving the app via ng serve.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.