-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMainNav.vue
More file actions
81 lines (74 loc) · 2.76 KB
/
MainNav.vue
File metadata and controls
81 lines (74 loc) · 2.76 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<template>
<nav class="app-nav nav nav-tabs sub-nav ember-view">
<div class="limit-width">
<div class="sub-nav-item ember-view">
<a @click="goToAccessToken" class="ember-view" :class="{'active': isAccessTokenActive}">
<svg style="height: 24px; width: 24px;" class="icon malibu-icon fill-purple" >
<title id="malibu-icon-ember486">Access Tokens</title>
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#overview-28"></use>
</svg>
<span class="sub-nav-item-name gray">Access Tokens</span>
</a>
</div>
<div class="sub-nav-item ember-view">
<a @click="goToAccountSetting" class="ember-view" :class="{'active': isAccountSettingActive}">
<svg style="height: 24px; width: 24px;" class="icon malibu-icon fill-gray" >
<title id="malibu-icon-ember489">Account Setting</title>
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#formation-28"></use>
</svg>
<span class="sub-nav-item-name gray">Account Setting</span>
</a>
</div>
<div class="sub-nav-item ember-view">
<a @click="goToOrganizations" class="ember-view" :class="{'active': isOrganizationsActive}">
<svg style="height: 24px; width: 24px;" class="icon malibu-icon fill-gray" >
<title id="malibu-icon-ember490">Organizations</title>
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#group-28"></use>
</svg>
<span class="sub-nav-item-name gray">Organizations</span>
</a>
</div>
</div>
</nav>
</template>
<script>
import { useRouter } from 'vue-router'
export default {
props: {
isAccessTokenActive: {
type: Boolean,
default: false
},
isAccountSettingActive: {
type: Boolean,
default: false
},
isOrganizationsActive: {
type: Boolean,
default: false
}
},
setup(props) {
const router = useRouter()
const goToAccessToken = () => {
router.push('/access-tokens')
}
const goToAccountSetting = () => {
router.push('/account-setting')
}
const goToOrganizations = () => {
router.push('/organizations')
}
return {
goToAccessToken,
goToAccountSetting,
goToOrganizations
}
}
}
</script>
<style scoped>
a:hover {
cursor: pointer;
}
</style>