diff options
author | Arundathi Patil <arundpil@in.ibm.com> | 2018-07-18 15:41:05 +0530 |
---|---|---|
committer | Takamune Cho <tc012c@att.com> | 2018-07-24 14:43:16 +0000 |
commit | 465d29eba2c191e768963a1987819b8f72e9e7c8 (patch) | |
tree | b438e3f54b156ce7f520f075e159daa523e8f379 /src/app/about-us/aboutus.component.html | |
parent | 63db30487e65a978e745216e3d89e7f30385205e (diff) |
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>
Diffstat (limited to 'src/app/about-us/aboutus.component.html')
-rw-r--r-- | src/app/about-us/aboutus.component.html | 42 |
1 files changed, 7 insertions, 35 deletions
diff --git a/src/app/about-us/aboutus.component.html b/src/app/about-us/aboutus.component.html index 3c2fb52..554fd4a 100644 --- a/src/app/about-us/aboutus.component.html +++ b/src/app/about-us/aboutus.component.html @@ -2,6 +2,8 @@ ============LICENSE_START========================================== =================================================================== Copyright (C) 2018 AT&T Intellectual Property. All rights reserved. + +Copyright (C) 2018 IBM Intellectual Property. All rights reserved. =================================================================== Unless otherwise specified, all software contained herein is licensed @@ -19,7 +21,7 @@ limitations under the License. ============LICENSE_END============================================ --> - +<simple-notifications [options]="options"></simple-notifications> <div class="text-center"> <div class="card"> <div class="mdl-dialog__content"> @@ -27,7 +29,8 @@ limitations under the License. <div class="card-header" style="font-size: 20px">CONTACT DETAILS</div> <div class="mdl-card__title"> <div class="text-center"> - Contact us @:<a href="mailto:{{contactUsMail.CONTACT_US_EMAIL}}?Subject={{contactUsMail.CONTACT_US_SUBJECT}}">APPC DEVELOPMENT TEAM</a> + Contact us @: + <a href="mailto:{{contactUsMail.CONTACT_US_EMAIL}}?Subject={{contactUsMail.CONTACT_US_SUBJECT}}">APPC DEVELOPMENT TEAM</a> </div> </div> </div>     @@ -58,7 +61,7 @@ limitations under the License. </div> <div class="text-right"> <div class="mdl-dialog__content"> - <a class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--primary" (click)="open(content)" (click)="versionLogFile()">VIEW CHANGE LOG</a> + <a class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--primary" (click)="open(content)">VIEW CHANGE LOG</a> </div> </div> @@ -66,35 +69,4 @@ limitations under the License. </div> </div> -</div> - -<ng-template #content let-c="close" let-d="dismiss"> - <div class="modal-content" style="width:800px;vertical-align:auto;"> - <div class="modal-header"> - <h4 class="modal-title" style="text-align:center">VERSION CHANGE LOG</h4> - <button type="button" class="close" aria-label="Close" (click)="d('Cross click')"> - <span aria-hidden="true">×</span> - </button> - </div> - <div class="modal-body"> - <div class="form-group row"> - <html> - - <body> - <textarea class="textarea">{{this.data}}</textarea> - </body> - - </html> - </div> - </div> - <div class="modal-footer"> - <button type="button" (click)="downloadLogFile()" class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--accent - " (click)="c('yes')">Download - </button> - <button type="button" class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--primary - - " (click)="c('yes')">Cancel - </button> - </div> - </div> -</ng-template>
\ No newline at end of file +</div>
\ No newline at end of file |