| Index: go/src/infra/appengine/sheriff-o-matic/elements/som-app.html
|
| diff --git a/go/src/infra/appengine/sheriff-o-matic/elements/som-app.html b/go/src/infra/appengine/sheriff-o-matic/elements/som-app.html
|
| index d51c993027408ddbf265bdb579ec4da8f9d59d8a..81d653669736f398f67f7279cd39599ab053c231 100644
|
| --- a/go/src/infra/appengine/sheriff-o-matic/elements/som-app.html
|
| +++ b/go/src/infra/appengine/sheriff-o-matic/elements/som-app.html
|
| @@ -259,6 +259,10 @@
|
| _path: {
|
| type: String,
|
| },
|
| + _refreshEnabled: {
|
| + type: Boolean,
|
| + computed: '_computeRefreshEnabled(_selectedPage)',
|
| + },
|
| _refreshPosition: {
|
| type: Number,
|
| value: function() { return 0; },
|
| @@ -295,6 +299,9 @@
|
| ////////////////////// Refresh ///////////////////////////
|
|
|
| _refresh: function() {
|
| + if (!this._refreshEnabled) {
|
| + return;
|
| + }
|
| this._refreshPosition = this.$.mainHeaderPanel.$.mainContainer.scrollTop;
|
| this.$.annotations.generateRequest();
|
| this._alertsGroupsChanged(this._alertsGroups);
|
| @@ -329,6 +336,10 @@
|
| return [tree];
|
| },
|
|
|
| + _computeRefreshEnabled: function(selectedPage) {
|
| + return selectedPage == "alertsList";
|
| + },
|
| +
|
| _computeSelectedPage: function(path) {
|
| let pathParts = path.split('/');
|
| if (pathParts.length < 2) {
|
|
|