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>
|
</li>
|
||||||
</Draggable>
|
</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>
|
<h3>{{ t('dashboard', 'Change background image') }}</h3>
|
||||||
<BackgroundSettings :background="background" @updateBackground="updateBackground" />
|
<BackgroundSettings :background="background" @updateBackground="updateBackground" />
|
||||||
|
@ -95,6 +95,7 @@ export default {
|
||||||
],
|
],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
isAdmin: getCurrentUser().isAdmin,
|
||||||
timer: new Date(),
|
timer: new Date(),
|
||||||
registeredStatus: [],
|
registeredStatus: [],
|
||||||
callbacks: {},
|
callbacks: {},
|
||||||
|
|
Loading…
Reference in New Issue