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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<style lang="scss">
#headerPopover .lpContent {
min-width: 9em;
}
</style>
<template>
<span class="headerItem hasPopover">
<PopoverHover id="headerPopover">
<span slot="target">More <i class="lpSprite lpExpand" /></span>
<div slot="content">
<a class="lpHref" @click="showChangePassword">Change password</a><br>
<a class="lpHref" @click="showHelp">Help</a><br>
<a class="lpHref" @click="logout">Logout</a>
</div>
</PopoverHover>
</span>
</template>
<script>
import PopoverHover from './popoverHover.vue';
export default {
name: 'MoreDropdown',
components: {
PopoverHover,
},
computed: {
library() {
return this.$store.state.library;
},
},
methods: {
showChangePassword() {
bus.$emit('showChangePassword');
},
showHelp() {
bus.$emit('showHelp');
},
logout() {
this.$store.commit('logout');
router.push('/login');
},
},
};
</script>