add cover to profile & logout on dashbord
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="flex-between flex-center py-1 px-2 topbar">
|
||||
<router-link v-if="authUser" :to="'/profil'" class="flex-middle avatar-box">
|
||||
<div class="flex-between flex-middle py-1 px-2 topbar">
|
||||
<router-link v-if="authUser" :to="'/profile'" class="flex-middle avatar-box">
|
||||
<Avatar :avatar="authUser.data.attributes.avatar" size="small" :alt="authUser.data.attributes.name" class="mr-1"/>
|
||||
{{ authUser.data.attributes.name }}
|
||||
</router-link>
|
||||
@@ -10,14 +10,9 @@
|
||||
<svg-vue icon="search" />
|
||||
</button>
|
||||
</form>
|
||||
<div v-if="authUser">
|
||||
<router-link to="/dashboard" class="mr-1">
|
||||
<svg-vue icon="params" />
|
||||
</router-link>
|
||||
<a href="#" @click.prevent="logout" class="nav-link">
|
||||
<svg-vue icon="logout" />
|
||||
</a>
|
||||
</div>
|
||||
<router-link to="/dashboard" v-if="authUser" class="mr-1">
|
||||
<svg-vue icon="params" />
|
||||
</router-link>
|
||||
<router-link v-else to="/login">
|
||||
Se connecter
|
||||
</router-link>
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
<template>
|
||||
<div>
|
||||
<img
|
||||
v-if="image"
|
||||
:class="classes"
|
||||
:src="imageObject.data.attributes.path"
|
||||
ref="image"
|
||||
:alt="alt">
|
||||
</div>
|
||||
<img
|
||||
v-if="image"
|
||||
:class="classes"
|
||||
:src="imageObject.data.attributes.path"
|
||||
ref="image"
|
||||
:alt="alt">
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
Reference in New Issue
Block a user