From d1bb0ae31b7d1a9fc54b4b0db7fbeb6b4a22a83f Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Thu, 13 Dec 2018 04:01:22 -0500 Subject: [PATCH] Adds collapse command to compare & search views --- CHANGELOG.md | 1 + src/views/compareView.ts | 2 +- src/views/searchView.ts | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 850eff4..ba274b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p - Remembers and restores the last commit search string - Adds the _Search Commits_ command to the search results inline toolbar - Reopens the commit search when clicking on a search results without results +- Adds a _Collapse_ command to the toolbars of the _Compare_ and _Search Commits_ views ### Fixed diff --git a/src/views/compareView.ts b/src/views/compareView.ts index f4ca58a..720abc2 100644 --- a/src/views/compareView.ts +++ b/src/views/compareView.ts @@ -62,7 +62,7 @@ export class CompareView extends ViewBase { } if (configuration.changed(e, configuration.name('views')('compare')('location').value)) { - this.initialize(this.config.location /*, { showCollapseAll: true } */); + this.initialize(this.config.location, { showCollapseAll: true }); } if (!configuration.initializing(e) && this._root !== undefined) { diff --git a/src/views/searchView.ts b/src/views/searchView.ts index 3574bcd..c5ffe73 100644 --- a/src/views/searchView.ts +++ b/src/views/searchView.ts @@ -65,7 +65,7 @@ export class SearchView extends ViewBase { } if (configuration.changed(e, configuration.name('views')('search')('location').value)) { - this.initialize(this.config.location /*, { showCollapseAll: true } */); + this.initialize(this.config.location, { showCollapseAll: true }); } if (!configuration.initializing(e) && this._root !== undefined) {