commit | 9eebf9b2a222440ecb9c49e8f2c4170dc8ff4c42 | [log] [tgz] |
---|---|---|
author | Dhruv Srivastava <dhruvsri@google.com> | Fri Jul 03 08:48:38 2020 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Fri Jul 03 08:48:38 2020 +0000 |
tree | 9241f033e8367b65c43b7cd4f85cdcd73e28183c | |
parent | dd5625277dc4a74fec9f4b4ed05b5843f65eedec [diff] | |
parent | 2df3d5e6bcd875509b2e9c7ee6e9d6a00e2c2c3b [diff] |
Merge "Remove patchset number from the file path in comments tab"
diff --git a/polygerrit-ui/app/elements/shared/gr-comment-thread/gr-comment-thread.js b/polygerrit-ui/app/elements/shared/gr-comment-thread/gr-comment-thread.js index fa686da..eb68024 100644 --- a/polygerrit-ui/app/elements/shared/gr-comment-thread/gr-comment-thread.js +++ b/polygerrit-ui/app/elements/shared/gr-comment-thread/gr-comment-thread.js
@@ -247,7 +247,7 @@ _computeDisplayPath(path) { const displayPath = this.computeDisplayPath(path); if (displayPath === SpecialFilePath.PATCHSET_LEVEL_COMMENTS) { - return `Patchset ${this.patchNum}`; + return `Patchset`; } return displayPath; }
diff --git a/polygerrit-ui/app/elements/shared/gr-comment-thread/gr-comment-thread_test.js b/polygerrit-ui/app/elements/shared/gr-comment-thread/gr-comment-thread_test.js index 3837514..db5ade1 100644 --- a/polygerrit-ui/app/elements/shared/gr-comment-thread/gr-comment-thread_test.js +++ b/polygerrit-ui/app/elements/shared/gr-comment-thread/gr-comment-thread_test.js
@@ -208,7 +208,7 @@ element.patchNum = '3'; path = SpecialFilePath.PATCHSET_LEVEL_COMMENTS; - assert.equal(element._computeDisplayPath(path), 'Patchset 3'); + assert.equal(element._computeDisplayPath(path), 'Patchset'); }); test('_computeDisplayLine', () => {