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