commit | 2df3d5e6bcd875509b2e9c7ee6e9d6a00e2c2c3b | [log] [tgz] |
---|---|---|
author | Dhruv Srivastava <dhruvsri@google.com> | Thu Jul 02 12:31:44 2020 +0200 |
committer | Dhruv Srivastava <dhruvsri@google.com> | Thu Jul 02 21:18:43 2020 +0200 |
tree | 66f3723070a6b4f078a7d13818994bdbe6d7e774 | |
parent | 89484122e207876f2bc8849fa3c87988fc12209a [diff] |
Remove patchset number from the file path in comments tab Change-Id: Id56ed8cfb95a60cedce24d9bf0c311ca6c7bb532
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', () => {