Only show app store link if user is admin
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
1c3e95670d
commit
e2f71fd322
|
@ -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: {},
|
||||
|
|
Loading…
Reference in New Issue