Remove Explorer.isRefreshing (#539)

This commit is contained in:
Steve Faulkner
2021-03-19 12:13:52 -05:00
committed by GitHub
parent e97a1643fb
commit ee8d2070bf
8 changed files with 22 additions and 71 deletions

View File

@@ -1,9 +1,8 @@
import crossroads from "crossroads";
import hasher from "hasher";
import * as _ from "underscore";
import * as Constants from "../Common/Constants";
import * as ViewModels from "../Contracts/ViewModels";
import crossroads from "crossroads";
import hasher from "hasher";
import ScriptTabBase from "../Explorer/Tabs/ScriptTabBase";
import TabsBase from "../Explorer/Tabs/TabsBase";
@@ -398,14 +397,7 @@ export class TabRouteHandler {
private _executeActionHelper(action: () => void): void {
const explorer = window.dataExplorer;
if (!!explorer && (explorer.isRefreshingExplorer() || !explorer.isAccountReady())) {
const refreshSubscription = explorer.isRefreshingExplorer.subscribe((isRefreshing: boolean) => {
if (!isRefreshing) {
action();
refreshSubscription.dispose();
}
});
} else {
if (explorer && explorer.isAccountReady()) {
action();
}
}