wait icon while loading accounts list

pull/3481/head
yann300 2 years ago
parent 770afa7ebb
commit 8b02208e73
  1. 1
      libs/remix-ui/run-tab/src/lib/actions/account.ts
  2. 4
      libs/remix-ui/run-tab/src/lib/components/account.tsx

@ -49,6 +49,7 @@ export const fillAccountsList = async (plugin: RunTab, dispatch: React.Dispatch<
}
export const setFinalContext = (plugin: RunTab, dispatch: React.Dispatch<any>) => {
dispatch(fetchAccountsListRequest())
// set the final context. Cause it is possible that this is not the one we've originaly selected
const value = _getProviderDropdownValue(plugin)

@ -154,9 +154,7 @@ export function AccountUI (props: AccountProps) {
<i id="remixRunPlus" className={`fas fa-plus-circle udapp_icon ${plusOpt.classList}`} aria-hidden="true" onClick={newAccount}></i>
</span>
</CustomTooltip>
<i className="fa fa-spinner fa-pulse" aria-hidden="true"></i>
{ props.accounts.isRequesting && <i className="fa fa-spinner fa-pulse ml-2" aria-hidden="true"></i> }
</label>
<div className="udapp_account">
<select id="txorigin" data-id="runTabSelectAccount" name="txorigin" className="form-control udapp_select custom-select pr-4" value={selectedAccount||""} onChange={(e) => { props.setAccount(e.target.value) }}>

Loading…
Cancel
Save