aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dashboard/src
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-08-19 17:00:04 +0200
committerJulius Härtl <jus@bitgrid.net>2020-08-19 17:07:30 +0200
commit2b51b62f94dabcf7f782cba84b6138df9a1801ab (patch)
treec2382398c1ef4febdc575ed9cede8a70d859b362 /apps/dashboard/src
parent8eff3f02b6417d4343feb08ac068f1705362d9ee (diff)
downloadnextcloud-server-2b51b62f94dabcf7f782cba84b6138df9a1801ab.tar.gz
nextcloud-server-2b51b62f94dabcf7f782cba84b6138df9a1801ab.zip
Add previews
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/dashboard/src')
-rw-r--r--apps/dashboard/src/components/BackgroundSettings.vue3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/dashboard/src/components/BackgroundSettings.vue b/apps/dashboard/src/components/BackgroundSettings.vue
index 4fc23363ec3..984bb438911 100644
--- a/apps/dashboard/src/components/BackgroundSettings.vue
+++ b/apps/dashboard/src/components/BackgroundSettings.vue
@@ -52,7 +52,7 @@
:class="{ 'icon-loading': loading === shippedBackground.name, active: background === shippedBackground.name }"
tabindex="0"
class="background"
- :style="{ 'background-image': 'url(' + shippedBackground.url + ')' }"
+ :style="{ 'background-image': 'url(' + shippedBackground.preview + ')' }"
@click="setShipped(shippedBackground.name)"
@keyup.enter="setShipped(shippedBackground.name)"
@keyup.space="setShipped(shippedBackground.name)" />
@@ -87,6 +87,7 @@ export default {
return {
name: item,
url: prefixWithBaseUrl(item),
+ preview: prefixWithBaseUrl('previews/' + item),
details: shippedBackgroundList[item],
}
})