diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-08-19 17:00:04 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-08-19 17:07:30 +0200 |
commit | 2b51b62f94dabcf7f782cba84b6138df9a1801ab (patch) | |
tree | c2382398c1ef4febdc575ed9cede8a70d859b362 /apps/dashboard/src | |
parent | 8eff3f02b6417d4343feb08ac068f1705362d9ee (diff) | |
download | nextcloud-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.vue | 3 |
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], } }) |