Skip to content

Commit

Permalink
adding some highlight to the tokens managed by the logged user. This …
Browse files Browse the repository at this point in the history
…commit closes #64.
  • Loading branch information
Viterbo committed Sep 13, 2022
1 parent da4e44e commit 818c6f8
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/pages/tokens/components/token-list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
@issue="issue"
@retire="retire"
></token-detail>

<q-table
class="token-list"
title="Tokens"
Expand All @@ -23,16 +24,21 @@
row-key="name"
@row-click="rowClicked"
>
<template v-slot:body-cell-name="props">
<q-td :props="props">
<div class="d-flex flex justify-between items-center">
<template v-slot:body-cell="props">
<q-td
:props="props"
:class="(props.row.token_owner==account)?'bg-blue-grey-1 text-black':'bg-white text-black'"
>
<div v-if="props.col.name == 'name'" class="d-flex flex justify-between items-center">
<q-avatar rounded>
<img :src="props.row.logo_sm" />
</q-avatar>
<span class="q-ml-md">{{ props.row.token_name }}</span>
</div>
<div v-else>{{props.value}}</div>
</q-td>
</template>

<template v-slot:top-right v-if="!createToken && isAuthenticated">
<q-btn
color="primary"
Expand Down

0 comments on commit 818c6f8

Please sign in to comment.