Add hyperlink to draft comments banner

Some users were not able to find the closed changes with draft comments
referred to by the banner.

This change adds a "view all" link to the query for all closed changes
with draft comments to provide additional context to the user.

Bug: Issue 9771
Change-Id: I61ebb7e50558b487afb8729ba2a4b8da8cef579b
This commit is contained in:
Kasper Nilsson
2018-09-26 10:25:27 -07:00
parent 3a73e35dae
commit 4fa21ada22
2 changed files with 5 additions and 0 deletions

View File

@@ -68,6 +68,7 @@ limitations under the License.
<div class$="banner [[_computeBannerClass(_showDraftsBanner)]]">
<div>
You have draft comments on closed changes.
<a href$="[[_computeDraftsLink(_showDraftsBanner)]]" target="_blank">(view all)</a>
</div>
<div>
<gr-button

View File

@@ -244,5 +244,9 @@
_closeConfirmDeleteOverlay() {
this.$.confirmDeleteOverlay.close();
},
_computeDraftsLink() {
return Gerrit.Nav.getUrlForSearchQuery('has:draft -is:open');
},
});
})();