Skip to content

Commit

Permalink
remove columns
Browse files Browse the repository at this point in the history
  • Loading branch information
dni committed Sep 19, 2024
1 parent 6baa8f0 commit ba3a37a
Showing 1 changed file with 20 additions and 42 deletions.
62 changes: 20 additions & 42 deletions templates/tpos/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,16 @@ <h5 class="text-subtitle1 q-my-none">TPoS</h5>
>
<template v-slot:header="props">
<q-tr :props="props">
<q-th auto-width></q-th>
<q-th auto-width></q-th>
<q-th auto-width></q-th>
<q-th auto-width></q-th>
<q-th v-for="col in props.cols" :key="col.name" :props="props">
${ col.label }
</q-th>
<q-th auto-width>Tip Wallet</q-th>
<q-th auto-width>Tip Options %</q-th>
<q-th auto-width>Withdraw PIN</q-th>
<q-th auto-width>Withdraw Limit</q-th>
<q-th auto-width>Withdraw Premium</q-th>
<q-th auto-width></q-th>
<q-th auto-width></q-th>
</q-tr>
</template>

Expand Down Expand Up @@ -93,6 +91,24 @@ <h5 class="text-subtitle1 q-my-none">TPoS</h5>
><q-tooltip>Click to copy</q-tooltip
>${props.row.id.substring(0,6)}...</q-btn
>
<q-btn
flat
dense
size="xs"
@click="updateTposForm(props.row.id)"
icon="edit"
color="blue"
></q-btn>
</q-td>
<q-td auto-width>
<q-btn
flat
dense
size="xs"
@click="deleteTpos(props.row.id)"
icon="cancel"
color="pink"
></q-btn>
</q-td>

<q-td
Expand All @@ -104,24 +120,6 @@ <h5 class="text-subtitle1 q-my-none">TPoS</h5>
${ (col.name == 'tip_options' && col.value ?
JSON.parse(col.value).join(", ") : col.value) }
</q-td>
<q-td
v-if="props.row.tip_wallet && props.row.tip_wallet != ''"
auto-width
>
<q-btn
unelevated
dense
size="md"
copy="copy"
@click="copyText(props.row.tip_wallet)"
><q-tooltip>Click to copy</q-tooltip
>${props.row.tip_wallet.substring(0,6)}...</q-btn
>
</q-td>
<q-td v-else auto-width> N/A </q-td>
<q-td v-if="props.row.tip_wallet != ''" auto-width>
${props.row.tip_options}
</q-td>
<q-td v-else auto-width>N/A </q-td>
<q-td v-if="props.row.withdraw_limit >= 1" auto-width>
${props.row.withdraw_pin}
Expand All @@ -135,26 +133,6 @@ <h5 class="text-subtitle1 q-my-none">TPoS</h5>
${props.row.withdraw_premium}%
</q-td>
<q-td v-else auto-width> 0 </q-td>
<q-td auto-width>
<q-btn
flat
dense
size="xs"
@click="updateTposForm(props.row.id)"
icon="edit"
color="blue"
></q-btn>
</q-td>
<q-td auto-width>
<q-btn
flat
dense
size="xs"
@click="deleteTpos(props.row.id)"
icon="cancel"
color="pink"
></q-btn>
</q-td>
</q-tr>
<q-tr v-show="props.expand" :props="props">
<q-td colspan="100%">
Expand Down

0 comments on commit ba3a37a

Please sign in to comment.