From 2b51b62f94dabcf7f782cba84b6138df9a1801ab Mon Sep 17 00:00:00 2001 From: Julius Härtl Date: Wed, 19 Aug 2020 17:00:04 +0200 Subject: Add previews MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- apps/dashboard/src/components/BackgroundSettings.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/dashboard/src/components') 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], } }) -- cgit v1.2.3