aboutsummaryrefslogtreecommitdiffstats
path: root/src/app/shared/confirmModal
AgeCommit message (Collapse)AuthorFilesLines
2018-07-26added spec file for confirm.componentArundathi Patil1-0/+59
Wrote test cases for confirm modal component. Issue-ID: APPC-1064 Change-Id: I6cac13f52730c31cd98e14fc8874012224b938f9 Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
2018-07-24Made use of ng2-bootstrap-modal.Arundathi Patil1-7/+20
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>
2018-03-01Initial seed code contribution for CDTSkip Wonnell1-0/+64
Issue-ID: APPC-682 Change-Id: I0331ffce2a430195c29d0d1b2295966f9eb28699 Signed-off-by: Skip Wonnell <skip@att.com>