From 35e7e0c37afda66456c61b911ca67694a94e00da Mon Sep 17 00:00:00 2001 From: Becky Siegel Date: Tue, 20 Dec 2016 11:52:13 -0800 Subject: [PATCH] Expand inline diffs based on user preference If a user has enabled the expand inline diffs preference, the file list expands the file inline instead of opening a diff view. The toggle arrow is also hidden when this preference is selected. Feature: Issue 5115 Change-Id: I814d7dfff0348a8a315c992c0259810fcbc4704f --- .../change/gr-file-list/gr-file-list.html | 5 ++- .../change/gr-file-list/gr-file-list.js | 9 +++++ .../gr-file-list/gr-file-list_test.html | 37 +++++++++++++++---- 3 files changed, 41 insertions(+), 10 deletions(-) diff --git a/polygerrit-ui/app/elements/change/gr-file-list/gr-file-list.html b/polygerrit-ui/app/elements/change/gr-file-list/gr-file-list.html index 86c93c4b76..7ddceacd94 100644 --- a/polygerrit-ui/app/elements/change/gr-file-list/gr-file-list.html +++ b/polygerrit-ui/app/elements/change/gr-file-list/gr-file-list.html @@ -232,7 +232,8 @@ limitations under the License. [[_computeFileStatus(file.status)]] + href$="[[_computeDiffURL(changeNum, patchRange, file.__path)]]" + on-click="_handleFileClick">
[[_computeFileDisplayName(file.__path)]] @@ -265,7 +266,7 @@ limitations under the License. [[_formatPercentage(file.size, file.size_delta)]]
-
+