button icons

This commit is contained in:
Jörn-Michael Miehe 2019-05-27 17:04:51 +02:00
parent 1bc80b6d89
commit 063893e3e8
4 changed files with 14 additions and 8 deletions

View file

@ -1,12 +1,12 @@
<template>
<Header>
<v-btn flat :to="{ name: 'usercp' }"><v-icon>person</v-icon> {{ user.login }}</v-btn>
<v-btn flat :to="{ name: 'usercp' }">
<v-icon>person</v-icon> {{ user.login }}
</v-btn>
<v-dialog v-model="logging_out">
<template v-slot:activator="{ on }">
<v-btn flat v-on="on">
Logout
</v-btn>
<v-btn flat v-on="on"> <v-icon>power_off</v-icon> Logout </v-btn>
</template>
<v-card>

View file

@ -2,7 +2,7 @@
<v-dialog v-model="dialog">
<template v-slot:activator="{ on }">
<v-btn flat v-on="on">
{{ buttonText }}
<v-icon>{{ icon }}</v-icon> {{ buttonText }}
</v-btn>
</template>
@ -60,7 +60,8 @@ export default {
}),
props: {
buttonText: String
buttonText: String,
icon: String
},
methods: {

View file

@ -1,5 +1,5 @@
<template>
<FormDialog ref="main" buttonText="Login" @validated="doLogin">
<FormDialog ref="main" buttonText="Login" icon="power" @validated="doLogin">
<v-card-title class="headline">
Log In
</v-card-title>

View file

@ -1,5 +1,10 @@
<template>
<FormDialog ref="main" buttonText="Register" @validated="doRegister">
<FormDialog
ref="main"
buttonText="Register"
icon="book"
@validated="doRegister"
>
<v-card-title class="headline">
Register
</v-card-title>