From 57233fd99ac4cdc503c19d1738243271b54c8086 Mon Sep 17 00:00:00 2001 From: Julius Härtl Date: Thu, 18 Aug 2022 15:32:08 +0200 Subject: Expose core background image MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- apps/dashboard/src/DashboardApp.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/dashboard/src') diff --git a/apps/dashboard/src/DashboardApp.vue b/apps/dashboard/src/DashboardApp.vue index b9990566030..a7ec30fdb4d 100644 --- a/apps/dashboard/src/DashboardApp.vue +++ b/apps/dashboard/src/DashboardApp.vue @@ -170,8 +170,9 @@ export default { || this.background.match(/#[0-9A-Fa-f]{6}/g)) { return null } + return { - backgroundImage: `url(${this.backgroundImage})`, + backgroundImage: this.background === 'default' ? 'var(--image-main-background)' : `url(${this.backgroundImage})`, } }, -- cgit v1.2.3