2020-01-17 21:11:19 +00:00
|
|
|
<template>
|
|
|
|
<v-list>
|
|
|
|
<v-list-item link to="/main/user/add">
|
|
|
|
<v-list-item-icon>
|
2020-02-25 21:34:45 +00:00
|
|
|
<v-icon>{{ account }}</v-icon>
|
2020-01-17 21:11:19 +00:00
|
|
|
</v-list-item-icon>
|
|
|
|
<v-list-item-title>
|
|
|
|
Home
|
|
|
|
</v-list-item-title>
|
|
|
|
</v-list-item>
|
2020-05-27 10:09:54 +00:00
|
|
|
<v-list-item link :to="{ name: 'userOverview' }">
|
2020-01-17 21:11:19 +00:00
|
|
|
<v-list-item-icon>
|
2020-02-25 21:34:45 +00:00
|
|
|
<v-icon>{{ bank }}</v-icon>
|
2020-01-17 21:11:19 +00:00
|
|
|
</v-list-item-icon>
|
|
|
|
<v-list-item-title>Finanzübersicht</v-list-item-title>
|
|
|
|
</v-list-item>
|
2020-05-27 10:09:54 +00:00
|
|
|
<v-list-item
|
|
|
|
link
|
|
|
|
:to="{
|
|
|
|
name: 'userJobs',
|
|
|
|
params: {
|
|
|
|
year: new Date().getFullYear(),
|
|
|
|
month: new Date().getMonth() + 1
|
|
|
|
}
|
|
|
|
}"
|
|
|
|
>
|
2020-01-27 18:56:56 +00:00
|
|
|
<v-list-item-icon>
|
|
|
|
<v-icon>
|
2020-02-25 21:34:45 +00:00
|
|
|
{{ briefcase }}
|
2020-01-27 18:56:56 +00:00
|
|
|
</v-icon>
|
|
|
|
</v-list-item-icon>
|
|
|
|
<v-list-item-title>Dienstübersicht</v-list-item-title>
|
|
|
|
</v-list-item>
|
2020-05-27 10:09:54 +00:00
|
|
|
<v-list-item
|
|
|
|
link
|
|
|
|
:to="{ name: 'jobRequests', params: { kind: 'jobInvites' } }"
|
|
|
|
>
|
2020-02-25 21:34:45 +00:00
|
|
|
<v-list-item-icon>
|
2020-05-27 10:09:54 +00:00
|
|
|
<v-badge overlap color="red" :content="news" :value="news !== 0">
|
|
|
|
<v-icon>
|
|
|
|
{{ switchAccount }}
|
|
|
|
</v-icon>
|
|
|
|
</v-badge>
|
2020-02-25 21:34:45 +00:00
|
|
|
</v-list-item-icon>
|
|
|
|
<v-list-item-title>Dienstanfragen</v-list-item-title>
|
|
|
|
</v-list-item>
|
2020-05-27 10:09:54 +00:00
|
|
|
<v-list-item link :to="{ name: 'userConfig' }">
|
2020-01-26 22:55:59 +00:00
|
|
|
<v-list-item-icon>
|
2020-02-25 21:34:45 +00:00
|
|
|
<v-icon>{{ account_card_details }}</v-icon>
|
2020-01-26 22:55:59 +00:00
|
|
|
</v-list-item-icon>
|
|
|
|
<v-list-item-title>Einstellung</v-list-item-title>
|
|
|
|
</v-list-item>
|
2020-01-17 21:11:19 +00:00
|
|
|
</v-list>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2020-02-25 21:34:45 +00:00
|
|
|
import {
|
|
|
|
mdiAccountCardDetails,
|
|
|
|
mdiHome,
|
|
|
|
mdiBank,
|
|
|
|
mdiBriefcase,
|
|
|
|
mdiAccountSwitch
|
|
|
|
} from '@mdi/js'
|
2020-05-27 10:09:54 +00:00
|
|
|
|
|
|
|
import { mapGetters, mapActions } from 'vuex'
|
2020-01-17 21:11:19 +00:00
|
|
|
export default {
|
2020-01-26 22:55:59 +00:00
|
|
|
name: 'UserNavigation',
|
2020-02-25 21:34:45 +00:00
|
|
|
data() {
|
2020-01-26 22:55:59 +00:00
|
|
|
return {
|
|
|
|
account_card_details: mdiAccountCardDetails,
|
|
|
|
account: mdiHome,
|
2020-01-27 18:56:56 +00:00
|
|
|
bank: mdiBank,
|
2020-02-25 21:34:45 +00:00
|
|
|
briefcase: mdiBriefcase,
|
|
|
|
switchAccount: mdiAccountSwitch
|
2020-01-26 22:55:59 +00:00
|
|
|
}
|
2020-05-27 10:09:54 +00:00
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
...mapActions({
|
|
|
|
getJobInvites: 'jobInvites/getJobInvites',
|
|
|
|
getUser: 'user/getUser'
|
|
|
|
})
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
...mapGetters({
|
|
|
|
news: 'jobInvites/news'
|
|
|
|
})
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
this.getUser()
|
|
|
|
setTimeout(() => {
|
|
|
|
this.getJobInvites()
|
|
|
|
}, 500)
|
|
|
|
|
2020-01-26 22:55:59 +00:00
|
|
|
}
|
2020-01-17 21:11:19 +00:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped></style>
|