mirror of
https://github.com/hansjone/netxops.git
synced 2026-10-18 01:33:30 +08:00
Fix KB settings badge stuck on unconfigured after bind (0.1.38).
Reload Host kbRoot after browse/save so the status badge tracks the live package instead of a stale snapshot. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
0f31a6648a
commit
1b4c402723
9 changed files with 261 additions and 50 deletions
|
|
@ -218,7 +218,9 @@ export class CardForm<T> {
|
|||
|
||||
private async store(field: string, value: unknown): Promise<boolean> {
|
||||
await this.scope.set(field, value)
|
||||
return this.userLayer()?.[field] === value
|
||||
// `settings.mutate` can settle without throwing on a refused write; confirm
|
||||
// via the resolved section value (user layer alone can lag or omit keys).
|
||||
return this.sectionValue(field) === value || this.userLayer()?.[field] === value
|
||||
}
|
||||
|
||||
private stage(field: string, edit: StagedEdit): void {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue