Update URL generation in gr-related-changes-list

Change-Id: Idb9d2464e473ca167e6794ca5e0a7cbc52d8e933
This commit is contained in:
Wyatt Allen
2017-09-27 11:45:17 -04:00
parent c956c41543
commit fe625c38d6
4 changed files with 35 additions and 13 deletions

View File

@@ -188,6 +188,21 @@ limitations under the License.
});
},
/**
* @param {number} changeNum
* @param {string} project The name of the project.
* @param {number=} opt_patchNum
* @return {string}
*/
getUrlForChangeById(changeNum, project, opt_patchNum) {
return this._getUrlFor({
view: Gerrit.Nav.View.CHANGE,
changeNum,
project,
patchNum: opt_patchNum,
});
},
/**
* @param {!Object} change The change object.
* @param {number=} opt_patchNum