Merge "Show checks table upon clicking state chip"
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user