From 8fe76c5687f729d6144dada816cb7f849116f9bd Mon Sep 17 00:00:00 2001 From: Urs Wolfer Date: Sat, 9 Apr 2016 16:23:47 +0200 Subject: [PATCH] Change list: fix project links Links resulted in an error because project dashboard is not implemented yet. Instead, filter change list just like it filtered for branches and owners already. Change-Id: I88a17b91a0af0f6b9cc50381fc7169fbb4e3a4f5 --- .../change-list/gr-change-list-item/gr-change-list-item.js | 2 +- .../gr-change-list-item/gr-change-list-item_test.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/polygerrit-ui/app/elements/change-list/gr-change-list-item/gr-change-list-item.js b/polygerrit-ui/app/elements/change-list/gr-change-list-item/gr-change-list-item.js index bcceb35f55..d16093374e 100644 --- a/polygerrit-ui/app/elements/change-list/gr-change-list-item/gr-change-list-item.js +++ b/polygerrit-ui/app/elements/change-list/gr-change-list-item/gr-change-list-item.js @@ -127,7 +127,7 @@ }, _computeProjectURL: function(project) { - return '/projects/' + project + ',dashboards/default'; + return '/q/status:open+project:' + project; }, _computeProjectBranchURL: function(project, branch) { diff --git a/polygerrit-ui/app/elements/change-list/gr-change-list-item/gr-change-list-item_test.html b/polygerrit-ui/app/elements/change-list/gr-change-list-item/gr-change-list-item_test.html index 84472153e8..5507b9f625 100644 --- a/polygerrit-ui/app/elements/change-list/gr-change-list-item/gr-change-list-item_test.html +++ b/polygerrit-ui/app/elements/change-list/gr-change-list-item/gr-change-list-item_test.html @@ -118,7 +118,7 @@ limitations under the License. {labels: {Verified: {rejected: true}}}, 'Verified'), '✕'); assert.equal(element._computeProjectURL('combustible-stuff'), - '/projects/combustible-stuff,dashboards/default'); + '/q/status:open+project:combustible-stuff'); assert.equal(element._computeProjectBranchURL( 'combustible-stuff', 'lemons'),