Skip to content

Commit

Permalink
fix widget config saving on dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
bwp91 committed Oct 22, 2024
1 parent 48c332a commit 82e0f75
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 28 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 8 additions & 0 deletions ui/src/app/modules/status/status.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ <h5 class="modal-title">{{ 'status.widget.title_manage_widget' | translate }}</h
</div>
<div class="text-center"></div>
<div class="text-right">
<button type="button" class="btn btn-primary" data-dismiss="modal" (click)="$activeModal.dismiss('Dismiss')">
<button type="button" class="btn btn-primary" data-dismiss="modal" (click)="$activeModal.close()">
{{ 'form.button_save' | translate }}
</button>
</div>
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { TranslateService } from '@ngx-translate/core'

@Component({
templateUrl: './widget-visibility.component.html',
styleUrls: ['./widget-visibility.component.scss'],
})
export class WidgetVisibilityComponent implements OnInit {
@Input() dashboard: any
Expand Down
4 changes: 0 additions & 4 deletions ui/src/scss/themes/themes-dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -377,10 +377,6 @@
background: rgba(224, 224, 224, 0.5);
}

.available-widget {
background-color: #000000;
}

#AccessoriesWidgetComponent {
border-color: rgba($secondaryBackground, 0.5) !important;
}
Expand Down

0 comments on commit 82e0f75

Please sign in to comment.