Show legal links from api if configured

This commit is contained in:
kolaente 2020-07-18 21:39:30 +02:00
parent 8ab9824f96
commit 0be280aae3
Signed by untrusted user who does not match committer: konrad
GPG key ID: F40E70337AB24C9B
9 changed files with 56 additions and 0 deletions

View file

@ -60,6 +60,8 @@
<router-link :to="{name: 'user.settings'}" class="dropdown-item">
Settings
</router-link>
<a :href="imprintUrl" v-if="imprintUrl" class="dropdown-item" target="_blank">Imprint</a>
<a :href="privacyPolicyUrl" v-if="privacyPolicyUrl" class="dropdown-item" target="_blank">Privacy policy</a>
<a @click="logout()" class="dropdown-item">
Logout
</a>
@ -404,6 +406,8 @@
},
currentList: CURRENT_LIST,
background: 'background',
imprintUrl: state => state.config.legal.imprintUrl,
privacyPolicyUrl: state => state.config.legal.privacyPolicyUrl,
}),
methods: {
logout() {