diff --git a/CHANGELOG.md b/CHANGELOG.md index d2fbdf75b..4fcf984df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ All notable changes to `homebridge-config-ui-x` will be documented in this file. ### UI Changes - implement and allow switching to scoped plugins +- fix widget config saving on dashboard ### Other Changes diff --git a/ui/src/app/modules/status/status.component.ts b/ui/src/app/modules/status/status.component.ts index 7a9f25f83..4f536afba 100644 --- a/ui/src/app/modules/status/status.component.ts +++ b/ui/src/app/modules/status/status.component.ts @@ -265,6 +265,14 @@ export class StatusComponent implements OnInit, OnDestroy { backdrop: 'static', }) ref.componentInstance.widget = item + ref.result + .then(() => { + this.gridChangedEvent() + item.$configureEvent.next(undefined) + }) + .catch(() => { + // modal closed + }) } openCreditsModal() { diff --git a/ui/src/app/modules/status/widget-control/widget-control.component.html b/ui/src/app/modules/status/widget-control/widget-control.component.html index c259af3cc..71b0e45ca 100644 --- a/ui/src/app/modules/status/widget-control/widget-control.component.html +++ b/ui/src/app/modules/status/widget-control/widget-control.component.html @@ -263,7 +263,7 @@