Skip to content

Commit cca39b4

Browse files
punam20DevipriyaS17
authored andcommitted
fix: fix refresh power button issue
1 parent 8162dd7 commit cca39b4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/app/devices/device-toolbar/device-toolbar.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,10 @@ export class DeviceToolbarComponent implements OnInit {
219219

220220
getPowerState(): void {
221221
this.isLoading().set(true)
222-
// Goes through the cached variant so a simultaneous KVM deep-link fetch and
223-
// this toolbar fetch are deduped into one /power/state round-trip.
222+
// Bypass the cache so a manual refresh always fetches the latest state from
223+
// the device rather than returning a previously cached value.
224224
this.devicesService
225-
.getPowerStateCached(this.deviceId())
225+
.getPowerState(this.deviceId())
226226
.pipe(takeUntilDestroyed(this.destroyRef))
227227
.subscribe((powerState) => {
228228
this.powerState.set(

0 commit comments

Comments
 (0)