Merge branch 'stable-2.16'
* stable-2.16: Fix account and group query with Elasticsearch 6 Fix support for "SystemVerilog" Add "Show Relative Dates In Changes Table" to settings preference Update syntax highlighting class Change-Id: I0189b0e27d923d638aee2bc5779dca7261084841
This commit is contained in:
@@ -207,6 +207,16 @@ limitations under the License.
|
||||
</gr-select>
|
||||
</span>
|
||||
</section>
|
||||
<section>
|
||||
<span class="title">Show Relative Dates In Changes Table</span>
|
||||
<span class="value">
|
||||
<input
|
||||
id="relativeDateInChangeTable"
|
||||
type="checkbox"
|
||||
checked$="[[_localPrefs.relative_date_in_change_table]]"
|
||||
on-change="_handleRelativeDateInChangeTable">
|
||||
</span>
|
||||
</section>
|
||||
<section>
|
||||
<span class="title">Diff view</span>
|
||||
<span class="value">
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
'signed_off_by',
|
||||
'email_format',
|
||||
'size_bar_in_change_table',
|
||||
'relative_date_in_change_table',
|
||||
];
|
||||
|
||||
const GERRIT_DOCS_BASE_URL = 'https://gerrit-review.googlesource.com/' +
|
||||
@@ -270,6 +271,11 @@
|
||||
this._prefsChanged = true;
|
||||
},
|
||||
|
||||
_handleRelativeDateInChangeTable() {
|
||||
this.set('_localPrefs.relative_date_in_change_table',
|
||||
this.$.relativeDateInChangeTable.checked);
|
||||
},
|
||||
|
||||
_handleShowSizeBarsInFileListChanged() {
|
||||
this.set('_localPrefs.size_bar_in_change_table',
|
||||
this.$.showSizeBarsInFileList.checked);
|
||||
|
||||
@@ -88,6 +88,7 @@ limitations under the License.
|
||||
email_strategy: 'ENABLED',
|
||||
email_format: 'HTML_PLAINTEXT',
|
||||
default_base_for_merges: 'FIRST_PARENT',
|
||||
relative_date_in_change_table: false,
|
||||
size_bar_in_change_table: true,
|
||||
|
||||
my: [
|
||||
@@ -151,6 +152,9 @@ limitations under the License.
|
||||
.firstElementChild.bindValue, preferences.email_format);
|
||||
assert.equal(valueOf('Default Base For Merges', 'preferences')
|
||||
.firstElementChild.bindValue, preferences.default_base_for_merges);
|
||||
assert.equal(
|
||||
valueOf('Show Relative Dates In Changes Table', 'preferences')
|
||||
.firstElementChild.checked, false);
|
||||
assert.equal(valueOf('Diff view', 'preferences')
|
||||
.firstElementChild.bindValue, preferences.diff_view);
|
||||
assert.equal(valueOf('Show size bars in file list', 'preferences')
|
||||
|
||||
Reference in New Issue
Block a user