forked from misterGF/CoPilot
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathUserMenu.vue
More file actions
32 lines (31 loc) · 1007 Bytes
/
Copy pathUserMenu.vue
File metadata and controls
32 lines (31 loc) · 1007 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<template>
<li class="dropdown user user-menu">
<a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown">
<!-- The user image in the navbar-->
<img :src="user.avatar" class="user-image" alt="User Image">
<!-- hidden-xs hides the username on small devices so only the image appears. -->
<span class="hidden-xs">{{user.displayName}}</span>
</a>
<!-- Account Info and Menu -->
<ul class="dropdown-menu">
<li class="user-header" style="height:auto;min-height:85px;padding-bottom:15px;">
<p>
<span>{{user.displayName}}</span>
<small v-for="role in user.roles" :key="role">{{role}}</small>
</p>
</li>
<li class="user-footer">
<a href="javascript:;" class="btn btn-default btn-flat btn-block">
<i class="fa fa-sign-out"></i>
<span>Logout</span>
</a>
</li>
</ul>
</li>
</template>
<script>
export default {
name: 'UserMenu',
props: ['user']
}
</script>