Merge "Show checks table upon clicking state chip"

This commit is contained in:
Ben Rohlfs
2019-07-02 16:28:22 +00:00
committed by Gerrit Code Review
2 changed files with 12 additions and 0 deletions

View File

@@ -366,6 +366,7 @@ limitations under the License.
<div
id="mainContent"
class="container"
on-show-checks-table="_handleShowChecksTable"
hidden$="{{_loading}}">
<div class$="[[_computeHeaderClass(_editMode)]]">
<div class="headerTitle">

View File

@@ -417,6 +417,17 @@
this._dynamicTabContentEndpoints[selectedIndex - 1];
},
_handleShowChecksTable(e) {
const idx = this._dynamicTabContentEndpoints.indexOf(e.detail.tab);
if (idx === -1) {
console.warn(e.detail.tab + ' tab not found');
return;
}
this.$$('#primaryTabs').selected = idx + 1;
this.$$('#primaryTabs').scrollIntoView();
this._handleFileTabChange();
},
_handleEditCommitMessage(e) {
this._editingCommitMessage = true;
this.$.commitMessageEditor.focusTextarea();