From a468338ead459cfb694db93aa2bac107c6443e85 Mon Sep 17 00:00:00 2001 From: cgfhtw Date: Wed, 12 Oct 2022 09:08:24 +0200 Subject: [PATCH] Configurable CSS classes to Default Widget --- public/js/components/DashboardWidget/Default.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/public/js/components/DashboardWidget/Default.js b/public/js/components/DashboardWidget/Default.js index 29e3880dd..859528ca5 100644 --- a/public/js/components/DashboardWidget/Default.js +++ b/public/js/components/DashboardWidget/Default.js @@ -4,10 +4,15 @@ export default { mixins: [ AbstractWidget ], + computed: { + css() { + return ['dashboard-widget-default', this.config.css]; + } + }, created() { this.$emit('setConfig', false) }, - template: `
+ template: `
{{ config.title }}

{{ config.msg }}

`