Remove default bug tracker from _feedbackUrl

Bug: Issue 11216
Change-Id: I5cd33d8f74118a0e9b3c96a3bce949092181cc45
This commit is contained in:
Paladox none
2019-07-25 21:57:04 +00:00
parent 2a5dfa8029
commit 28f2e51144
2 changed files with 12 additions and 6 deletions

View File

@@ -196,7 +196,9 @@ limitations under the License.
<div>
<a class="feedback"
href$="[[_feedbackUrl]]"
rel="noopener" target="_blank">Report bug</a>
rel="noopener"
target="_blank"
hidden$="[[!_showFeedbackUrl(_feedbackUrl)]]">Report bug</a>
| Press &ldquo;?&rdquo; for keyboard shortcuts
<gr-endpoint-decorator name="footer-right"></gr-endpoint-decorator>
</div>

View File

@@ -78,11 +78,7 @@
computed: '_computePluginScreenName(params)',
},
_settingsUrl: String,
_feedbackUrl: {
type: String,
value: 'https://bugs.chromium.org/p/gerrit/issues/entry' +
'?template=PolyGerrit%20Issue',
},
_feedbackUrl: String,
// Used to allow searching on mobile
mobileSearch: {
type: Boolean,
@@ -441,5 +437,13 @@
_mobileSearchToggle(e) {
this.mobileSearch = !this.mobileSearch;
},
_showFeedbackUrl(feedbackUrl) {
if (feedbackUrl) {
return feedbackUrl;
}
return false;
},
});
})();