summaryrefslogtreecommitdiffstats
path: root/apps/dashboard
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2022-08-18 15:32:08 +0200
committerJulius Härtl <jus@bitgrid.net>2022-08-19 11:55:10 +0200
commit57233fd99ac4cdc503c19d1738243271b54c8086 (patch)
tree7699d435c6fc4e2cb3527380bc5188ce50cb63a3 /apps/dashboard
parent49ddaaecbf2345673f871ca0225090b95521b3f4 (diff)
downloadnextcloud-server-57233fd99ac4cdc503c19d1738243271b54c8086.tar.gz
nextcloud-server-57233fd99ac4cdc503c19d1738243271b54c8086.zip
Expose core background image
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/dashboard')
-rw-r--r--apps/dashboard/src/DashboardApp.vue3
1 files changed, 2 insertions, 1 deletions
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})`,
}
},