0
0
mirror of https://github.com/vx3r/wg-gen-web.git synced 2024-12-18 00:13:23 +00:00

Add tooltips to client card actions

modified:   ui/src/components/Clients.vue
This commit is contained in:
Jrester 2020-03-30 18:12:55 +02:00
parent 664d8c2b0e
commit 8335dcf6b6

View File

@ -55,34 +55,61 @@
</v-chip> </v-chip>
</v-card-text> </v-card-text>
<v-card-actions> <v-card-actions>
<v-btn <v-tooltip bottom>
text <template v-slot:activator="{ on }">
:href="`${apiBaseUrl}/client/${client.id}/config?qrcode=false`" <v-btn
> text
<span class="d-none d-lg-flex">Download</span> :href="`${apiBaseUrl}/client/${client.id}/config?qrcode=false`"
<v-icon right dark>mdi-cloud-download-outline</v-icon> v-on="on"
</v-btn> >
<v-btn <span class="d-none d-lg-flex">Download</span>
<v-icon right dark>mdi-cloud-download-outline</v-icon>
</v-btn>
</template>
<span>Download</span>
</v-tooltip>

<v-tooltip bottom>
<template v-slot:activator="{ on }">
<v-btn
text text
@click.stop="startUpdateClient(client)" @click.stop="startUpdateClient(client)"
> v-on="on"
>
<span class="d-none d-lg-flex">Edit</span> <span class="d-none d-lg-flex">Edit</span>
<v-icon right dark>mdi-square-edit-outline</v-icon> <v-icon right dark>mdi-square-edit-outline</v-icon>
</v-btn> </v-btn>
</template>
<span>Edit</span>
</v-tooltip>

<v-tooltip bottom>
<template v-slot:activator="{ on }">
<v-btn <v-btn
text text
@click="deleteClient(client)" @click="deleteClient(client)"
v-on="on"
> >
<span class="d-none d-lg-flex">Delete</span> <span class="d-none d-lg-flex">Delete</span>
<v-icon right dark>mdi-trash-can-outline</v-icon> <v-icon right dark>mdi-trash-can-outline</v-icon>
</v-btn> </v-btn>
<v-btn </template>
text <span>Delete</span>
@click="sendEmailClient(client.id)" </v-tooltip>
>
<span class="d-none d-lg-flex">Send Email</span> <v-tooltip bottom>
<v-icon right dark>mdi-email-send-outline</v-icon> <template v-slot:activator="{ on }">
</v-btn> <v-btn
text
@click="sendEmailClient(client.id)"
v-on="on"
>
<span class="d-none d-lg-flex">Send Email</span>
<v-icon right dark>mdi-email-send-outline</v-icon>
</v-btn>
</template>
<span>Send Email</span>
</v-tooltip>
<v-spacer/> <v-spacer/>
<v-tooltip right> <v-tooltip right>
<template v-slot:activator="{ on }"> <template v-slot:activator="{ on }">