From c65bc6cd17cc23eb3997ac1a191fb5d05ffb50b6 Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 19 Dec 2022 16:31:19 +0800 Subject: [PATCH] [add] load dashboard --- widgets/widgets.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/widgets/widgets.go b/widgets/widgets.go index 14b72576..3986b5bd 100644 --- a/widgets/widgets.go +++ b/widgets/widgets.go @@ -8,6 +8,7 @@ import ( "github.com/yaoapp/yao/widgets/app" "github.com/yaoapp/yao/widgets/chart" "github.com/yaoapp/yao/widgets/component" + "github.com/yaoapp/yao/widgets/dashboard" "github.com/yaoapp/yao/widgets/expression" "github.com/yaoapp/yao/widgets/field" "github.com/yaoapp/yao/widgets/form" @@ -75,6 +76,12 @@ func Load(cfg config.Config) error { messages = append(messages, err.Error()) } + // dashboard widget + err = dashboard.LoadAndExport(cfg) + if err != nil { + messages = append(messages, err.Error()) + } + if len(messages) > 0 { err = fmt.Errorf(strings.Join(messages, ";\n")) return err