fixed mdi icons, added recit icon on map-popup
This commit is contained in:
@@ -1,4 +1,11 @@
|
||||
<script>
|
||||
|
||||
import SvgIcon from '@jamescoyle/vue-icon';
|
||||
import { mdiAccount } from '@mdi/js';
|
||||
import { mdiLogout } from '@mdi/js';
|
||||
import { mdiCogOutline } from '@mdi/js';
|
||||
|
||||
|
||||
import { mapState } from 'pinia'
|
||||
import { UserStore } from '@/stores/user'
|
||||
|
||||
@@ -8,6 +15,13 @@ export default {
|
||||
|
||||
return { userStore }
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
account_path: mdiAccount,
|
||||
cogoutline_path: mdiCogOutline,
|
||||
logout_path: mdiLogout
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState(UserStore,['isloggedin', 'isAdmin', 'mail', 'name'])
|
||||
},
|
||||
@@ -23,7 +37,7 @@ export default {
|
||||
}
|
||||
},
|
||||
components: {
|
||||
// Loggout
|
||||
SvgIcon
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -31,6 +45,7 @@ export default {
|
||||
<template>
|
||||
<div id="user-tools">
|
||||
<a class="mdi mdi-account" href="/api/user">
|
||||
<svg-icon type="mdi" :path="account_path"></svg-icon>
|
||||
<span>{{ name }}</span>
|
||||
<!-- <span v-else>{{ mail }}</span> -->
|
||||
</a><br/>
|
||||
@@ -38,13 +53,16 @@ export default {
|
||||
v-if="isAdmin"
|
||||
class="api"
|
||||
href="/api/admin/content/concernements">
|
||||
<svg-icon type="mdi" :path="cogoutline_path"></svg-icon>
|
||||
<span>API</span>
|
||||
</a><br/>
|
||||
<a href="/user/logout"
|
||||
@click.prevent="onLogout()"
|
||||
class="mdi mdi-logout"
|
||||
title="logout"
|
||||
/>
|
||||
>
|
||||
<svg-icon type="mdi" :path="logout_path"></svg-icon>
|
||||
</a>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -56,6 +74,9 @@ export default {
|
||||
gap: 0em;
|
||||
a{
|
||||
padding: $pad_btn;
|
||||
svg{
|
||||
height:0.8em;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user