2020-11-01 18:36:00 +01:00
|
|
|
<template>
|
|
|
|
<div
|
2021-05-19 17:41:04 +02:00
|
|
|
:class="[background ? 'has-background' : '', $route.name+'-view']"
|
2020-11-01 18:36:00 +01:00
|
|
|
:style="{'background-image': `url(${background})`}"
|
|
|
|
class="link-share-container"
|
|
|
|
>
|
|
|
|
<div class="container has-text-centered link-share-view">
|
|
|
|
<div class="column is-10 is-offset-1">
|
|
|
|
<img alt="Vikunja" class="logo" src="/images/logo-full.svg"/>
|
|
|
|
<h1
|
|
|
|
:style="{ 'opacity': currentList.title === '' ? '0': '1' }"
|
|
|
|
class="title">
|
|
|
|
{{ currentList.title === '' ? 'Loading...' : currentList.title }}
|
|
|
|
</h1>
|
|
|
|
<div class="box has-text-left view">
|
|
|
|
<div class="logout">
|
2021-01-17 18:57:57 +01:00
|
|
|
<x-button @click="logout()" type="secondary">
|
2020-11-01 18:36:00 +01:00
|
|
|
<span>Logout</span>
|
|
|
|
<span class="icon is-small">
|
2021-01-17 18:57:57 +01:00
|
|
|
<icon icon="sign-out-alt"/>
|
|
|
|
</span>
|
|
|
|
</x-button>
|
2020-11-01 18:36:00 +01:00
|
|
|
</div>
|
|
|
|
<router-view/>
|
2021-01-10 18:33:33 +01:00
|
|
|
<a class="menu-bottom-link" href="https://vikunja.io" target="_blank">
|
|
|
|
Powered by Vikunja
|
|
|
|
</a>
|
2020-11-01 18:36:00 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import {mapState} from 'vuex'
|
|
|
|
import {CURRENT_LIST} from '@/store/mutation-types'
|
|
|
|
|
|
|
|
export default {
|
|
|
|
name: 'contentLinkShare',
|
|
|
|
computed: mapState({
|
|
|
|
currentList: CURRENT_LIST,
|
|
|
|
background: 'background',
|
|
|
|
}),
|
|
|
|
methods: {
|
|
|
|
logout() {
|
|
|
|
this.$store.dispatch('auth/logout')
|
|
|
|
this.$router.push({name: 'user.login'})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
</script>
|