Only show app store link if user is admin

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2020-08-19 17:04:24 +02:00
parent 1c3e95670d
commit e2f71fd322
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 2 additions and 1 deletions

View File

@ -55,7 +55,7 @@
</li>
</Draggable>
<a :href="appStoreUrl" class="button">{{ t('dashboard', 'Get more widgets from the app store') }}</a>
<a v-if="isAdmin" :href="appStoreUrl" class="button">{{ t('dashboard', 'Get more widgets from the app store') }}</a>
<h3>{{ t('dashboard', 'Change background image') }}</h3>
<BackgroundSettings :background="background" @updateBackground="updateBackground" />
@ -95,6 +95,7 @@ export default {
],
data() {
return {
isAdmin: getCurrentUser().isAdmin,
timer: new Date(),
registeredStatus: [],
callbacks: {},