Only show related changes from latest patch set
This is to keep with the UI model that only the file list area should change according to which patch set is selected. Additionally fixed an issue where a thenable function was being passed to then(), which accepts a success and failure function and not a Promise. Bug: Issue 4477 Change-Id: Id83db0ad77c4ec6ba2840fa27d13291f2c927797
This commit is contained in:
@@ -256,7 +256,7 @@ limitations under the License.
|
||||
<div class="relatedChanges">
|
||||
<gr-related-changes-list id="relatedChanges"
|
||||
change="[[_change]]"
|
||||
patch-num="[[_patchRange.patchNum]]"></gr-related-changes-list>
|
||||
patch-num="[[_computeLatestPatchNum(_allPatchSets)]]"></gr-related-changes-list>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -74,6 +74,7 @@ limitations under the License.
|
||||
}
|
||||
</style>
|
||||
<div hidden$="[[!_loading]]">Loading...</div>
|
||||
<div hidden$="[[_loading]]">
|
||||
<section class="relatedChanges" hidden$="[[!_relatedResponse.changes.length]]" hidden>
|
||||
<h4>Relation chain</h4>
|
||||
<template
|
||||
@@ -127,6 +128,7 @@ limitations under the License.
|
||||
</a>
|
||||
</template>
|
||||
</section>
|
||||
</div>
|
||||
<gr-rest-api-interface id="restAPI"></gr-rest-api-interface>
|
||||
</template>
|
||||
<script src="gr-related-changes-list.js"></script>
|
||||
|
@@ -68,7 +68,7 @@
|
||||
}.bind(this)),
|
||||
];
|
||||
|
||||
return this._getServerConfig().then(function(config) {
|
||||
promises.push(this._getServerConfig().then(function(config) {
|
||||
if (this.change.topic && !config.change.submit_whole_topic) {
|
||||
return this._getChangesWithSameTopic().then(function(response) {
|
||||
this._sameTopic = response;
|
||||
@@ -77,7 +77,9 @@
|
||||
this._sameTopic = [];
|
||||
}
|
||||
return this._sameTopic;
|
||||
}.bind(this)).then(Promise.all(promises)).then(function() {
|
||||
}.bind(this)));
|
||||
|
||||
return Promise.all(promises).then(function() {
|
||||
this._loading = false;
|
||||
}.bind(this));
|
||||
},
|
||||
|
Reference in New Issue
Block a user