-
Notifications
You must be signed in to change notification settings - Fork 65
Add help button to modal header #1144
Add help button to modal header #1144
Conversation
|
Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED Commit: e1d4ce5 (Please note that this is a fully automated comment.) |
Codecov Report
@@ Coverage Diff @@
## master #1144 +/- ##
======================================
Coverage 100% 100%
======================================
Files 355 355
Lines 6578 6590 +12
Branches 842 842
======================================
+ Hits 6578 6590 +12
Continue to review full report at Codecov.
|
Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED Commit: 08da56c (Please note that this is a fully automated comment.) |
…d, removed code wrapping around the ? icon
…aud-BrandonJones/skyux2 into feature-help-modal-header
Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED Commit: 76f33f2 (Please note that this is a fully automated comment.) |
Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED Commit: bcf506e (Please note that this is a fully automated comment.) |
Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED Commit: 9ea609c (Please note that this is a fully automated comment.) |
@Blackbaud-BobbyEarl Implemented your suggestions! |
Also, I am unable to add reviewers here, could/should someone also add @Blackbaud-PaulCrowder on this? |
Tests failed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: BUSTED Commit: 12eb50d (Please note that this is a fully automated comment.) |
…aud-BrandonJones/skyux2 into feature-help-modal-header
Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED Commit: a672032 (Please note that this is a fully automated comment.) |
Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED Commit: 705a9a6 (Please note that this is a fully automated comment.) |
@@ -29,6 +29,9 @@ | |||
<ng-content select="sky-modal-header"></ng-content> | |||
</div> | |||
<div class="sky-modal-header-buttons"> | |||
<button *ngIf="helpKey !== undefined" type="button" class="sky-btn" name="help-button" [attr.aria-label]="'open_help' | skyResources" (click)="helpButtonClick()"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the !== undefined
needed here? Isn't *ngIf="helpKey"
sufficient?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be sufficient, the difference would be that ngIf
would be getting a direct boolean
value by evaluating the expression, instead of an interpolated undefined
vs something exists
check. I am fine with either :) depends on your standards willing to adjust.
@@ -74,6 +74,10 @@ export class SkyModalHostComponent { | |||
modalComponentRef.destroy(); | |||
} | |||
|
|||
hostService.openHelp.subscribe((helpKey?: string) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just noticed that none of these subscriptions are unsubscribed during ngOnDestroy
. Do you mind adding this to the component to see if it works?
src/modules/modal/modal-instance.ts
Outdated
@@ -27,6 +28,10 @@ export class SkyModalInstance { | |||
this.closeModal('save', result); | |||
} | |||
|
|||
public openHelp(helpKey?: string) { | |||
this.helpInvoked.emit(helpKey); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer the public method's name was more similar to the emitter (this.helpOpened
, or vice versa).
Tests failed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: BUSTED Commit: 3c72e95 (Please note that this is a fully automated comment.) |
Tests failed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: BUSTED Commit: 971e631 (Please note that this is a fully automated comment.) |
Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED Commit: 93217ce (Please note that this is a fully automated comment.) |
Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED Commit: 5e5f19b (Please note that this is a fully automated comment.) |
Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED Commit: ae134e7 (Please note that this is a fully automated comment.) |
Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED Commit: 1ac1dfa (Please note that this is a fully automated comment.) |
Resolution for Issue #893