Merge "Fix patch range dropdown not updating the file list" into stable-2.15
This commit is contained in:
@@ -434,8 +434,8 @@ limitations under the License.
|
||||
shown-file-count="[[_shownFileCount]]"
|
||||
diff-prefs="[[_diffPrefs]]"
|
||||
diff-view-mode="{{viewState.diffMode}}"
|
||||
patch-num="{{_patchNum}}"
|
||||
base-patch-num="{{_basePatchNum}}"
|
||||
patch-num="{{_patchRange.patchNum}}"
|
||||
base-patch-num="{{_patchRange.basePatchNum}}"
|
||||
revisions="[[_sortedRevisions]]"
|
||||
on-open-diff-prefs="_handleOpenDiffPrefs"
|
||||
on-open-download-dialog="_handleOpenDownloadDialog"
|
||||
|
||||
@@ -221,7 +221,6 @@
|
||||
'_labelsChanged(_change.labels.*)',
|
||||
'_paramsAndChangeChanged(params, _change)',
|
||||
'_updateSortedRevisions(_change.revisions.*)',
|
||||
'_patchRangeChanged(_patchRange.*)',
|
||||
],
|
||||
|
||||
keyBindings: {
|
||||
@@ -322,15 +321,6 @@
|
||||
window.location.reload();
|
||||
},
|
||||
|
||||
/**
|
||||
* Called when the patch range changes. does not detect sub property
|
||||
* updates.
|
||||
*/
|
||||
_patchRangeChanged() {
|
||||
this._basePatchNum = this._patchRange.basePatchNum;
|
||||
this._patchNum = this._patchRange.patchNum;
|
||||
},
|
||||
|
||||
_handleCommitMessageCancel(e) {
|
||||
this._editingCommitMessage = false;
|
||||
},
|
||||
|
||||
@@ -790,9 +790,8 @@ limitations under the License.
|
||||
status: 'NEW',
|
||||
labels: {},
|
||||
};
|
||||
element._basePatchNum = 1;
|
||||
element._patchNum = 2;
|
||||
element._patchNum = 3;
|
||||
element._patchRange = {basePatchNum: 1, patchNum: 2};
|
||||
element.$.fileListHeader.patchNum = 3;
|
||||
assert.equal(navigateToChangeStub.callCount, 1);
|
||||
assert.isTrue(navigateToChangeStub.lastCall
|
||||
.calledWithExactly(element._change, 3, 1));
|
||||
|
||||
Reference in New Issue
Block a user