diff --git a/www/config/ACLView.js b/www/config/ACLView.js index bab929a2..62cc4f9c 100644 --- a/www/config/ACLView.js +++ b/www/config/ACLView.js @@ -40,9 +40,7 @@ Ext.define('PBS.config.ACLView', { path: view.aclPath, aclType: 'user', listeners: { - destroy: function() { - me.reload(); - }, + destroy: () => me.reload(), }, }).show(); }, @@ -54,9 +52,7 @@ Ext.define('PBS.config.ACLView', { path: view.aclPath, aclType: 'token', listeners: { - destroy: function() { - me.reload(); - }, + destroy: () => me.reload(), }, }).show(); }, diff --git a/www/datastore/Panel.js b/www/datastore/Panel.js index d767656e..8439a83a 100644 --- a/www/datastore/Panel.js +++ b/www/datastore/Panel.js @@ -21,9 +21,7 @@ Ext.define('PBS.DataStorePanel', { me.setActiveTab(state.tab); } else if (state.tab) { // if we are not rendered yet, defer setting the activetab - setTimeout(function() { - me.setActiveTab(state.tab); - }, 10); + setTimeout(() => me.setActiveTab(state.tab), 10); } },