Skip to content

Commit

Permalink
ObscuroScan: MetaMask button show connected
Browse files Browse the repository at this point in the history
  • Loading branch information
BedrockSquirrel committed Nov 3, 2023
1 parent aae2f5f commit dfd86da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<template>
<el-button @click="connectMetamask" size="large" >
<img src="@/assets/imgs/icon_metamask.png" alt="Connect with MetaMask" class="metamask-icon" />
Connect with MetaMask
<div v-if="walletStore.provider">Connected!</div>
<div v-else>Connect with MetaMask</div>
</el-button>
</template>

Expand Down Expand Up @@ -36,7 +37,8 @@ export default {
}
return {
connectMetamask
connectMetamask,
walletStore
};
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</el-table-column>
<el-table-column prop="status" label="Status" width="180" >
<template #default="scope">
<span style="margin-left: 10px">{{ (Number(scope.row.status) === 1) ? "Sucess" : "Failed" }}</span>
<span style="margin-left: 10px">{{ (Number(scope.row.status) === 1) ? "Success" : "Failed" }}</span>
</template>
</el-table-column>
<el-table-column prop="gasUsed" label="Gas Cost" width="180" >
Expand Down

0 comments on commit dfd86da

Please sign in to comment.