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 Nov 16, 2024
1 parent fed0a82 commit 96c0ae3
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 @@ -9,6 +9,7 @@ All notable changes to `homebridge-config-ui-x` will be documented in this file.
- updates to the `th.json` language file (#2211) (@tomzt)
- updates to the `nl.json` language file (#2213) (@tooh)
- updates to the `es.json` language file (#2235) (@AxelDreemurr)
- 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 @@ -369,10 +369,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 96c0ae3

Please sign in to comment.