Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ObscuroScan: MetaMask button show connected #1634

Merged
merged 1 commit into from
Nov 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading