Skip to content

Commit

Permalink
Fix tableData overwrite bug and remove export button
Browse files Browse the repository at this point in the history
  • Loading branch information
ccali11 committed Oct 25, 2023
1 parent f123d64 commit edc95d3
Showing 1 changed file with 11 additions and 24 deletions.
35 changes: 11 additions & 24 deletions apps/web/src/pages/operators/Operator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,14 @@ const operatorTableHeaders = ref(
title: 'Node URL',
value: 'nodeURL'
},
{
title: '',
value: 'deactivate'
},
{
title: '',
value: 'withdraw_collateral'
},
// {
// title: '',
// value: 'deactivate'
// },
// {
// title: '',
// value: 'withdraw_collateral'
// },
]
)
Expand Down Expand Up @@ -157,23 +157,9 @@ watch(selectedWallet, async () =>{
}
})
watch(registeredDefaultOperators, () => {
watch([registeredDefaultOperators, registeredEigenOperators], () => {
openAddOperatorModal.value = false
tableData.value = [...registeredDefaultOperators.value].map((operator: any) => {
return {
id: operator.id,
walletAddress: operator.ownerAddress,
collateral: operator.collateral + ' ETH',
poolCount: operator.poolCount,
nodeURL: operator.url
}
})
filterData()
})
watch(registeredEigenOperators, () => {
openAddOperatorModal.value = false
tableData.value = [...registeredEigenOperators.value].map((operator: any) => {
tableData.value = [...registeredDefaultOperators.value, ...registeredEigenOperators.value].map((operator: any) => {
return {
id: operator.id,
walletAddress: operator.ownerAddress,
Expand Down Expand Up @@ -742,6 +728,7 @@ watch([loadingSessionLogin || loadingInitializeOperators], () =>{
<!-- TODO: @Chris, wanna hook up this button? -->
<button
class="bg-decline text-white rounded-[3px] px-[8px] py-[4px] text-[14px] font-[500]"
disabled
>
Deactivate
</button>
Expand Down

0 comments on commit edc95d3

Please sign in to comment.