fix avatar

parent 54b4064c
...@@ -69,30 +69,42 @@ ...@@ -69,30 +69,42 @@
separator="cell" separator="cell"
hide-pagination hide-pagination
> >
<template v-slot:body-cell-action="item"> <template v-slot:body-cell-avatar="avatar">
<q-td style="padding: 0" class="flex flex-center"> <q-td style="padding: 0" class="flex flex-center">
<q-btn <q-img
flat style="width: 7rem"
round fit="contain"
color="primary" :ratio="16 / 9"
icon="mdi-account-edit-outline" :src="avatar.row.avatar"
:to="`/nghe-sy/cap-nhat-thong-tin-nghe-sy/${item.row.id}`" ></q-img>
> </q-td>
<q-tooltip :offset="[20, 10]">{{ </template>
$t('userPage.toolTipMessage.updateUserInfo') <template v-slot:body-cell-action="item">
}}</q-tooltip> <q-td style="padding: 0">
</q-btn> <div align="center">
<q-btn <q-btn
flat flat
round round
color="primary" color="primary"
icon="mdi-delete" icon="mdi-account-edit-outline"
@click="confirmDeleteArtist(item.row.id)" :to="`/nghe-sy/cap-nhat-thong-tin-nghe-sy/${item.row.id}`"
> >
<q-tooltip :offset="[20, 10]">{{ <q-tooltip :offset="[20, 10]">{{
$t('managingUnit.toolTipMessage.delete') $t('userPage.toolTipMessage.updateUserInfo')
}}</q-tooltip> }}</q-tooltip>
</q-btn> </q-btn>
<q-btn
flat
round
color="primary"
icon="mdi-delete"
@click="confirmDeleteArtist(item.row.id)"
>
<q-tooltip :offset="[20, 10]">{{
$t('managingUnit.toolTipMessage.delete')
}}</q-tooltip>
</q-btn>
</div>
</q-td> </q-td>
</template> </template>
</q-table> </q-table>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment