Skip to content

Commit f7aaf2c

Browse files
committed
Merge branch 'develop'
2 parents c420733 + c6b6dea commit f7aaf2c

3 files changed

Lines changed: 26 additions & 79 deletions

File tree

sessions/tasks/h-implement-module-crash-watchdog.md

Lines changed: 0 additions & 78 deletions
This file was deleted.

sites/admin-cabinet/assets/js/pbx/Providers/provider-modify-status-worker.js

Lines changed: 14 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sites/admin-cabinet/assets/js/src/Providers/provider-modify-status-worker.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,9 +576,21 @@ const providerModifyStatusWorker = {
576576
} else {
577577
// Before any real event — no data, grey
578578
segmentData[i] = 'grey';
579+
579580
}
580581
}
581582

583+
584+
// If no events in 24h window but provider has known state, show it
585+
if (!hasRealEvent && currentStatus && lastKnownState !== 'grey') {
586+
for (let i = 0; i < segments; i++) {
587+
segmentData[i] = lastKnownState;
588+
if (lastKnownEvent) {
589+
segmentEvents[i] = [{...lastKnownEvent, inherited: true}];
590+
}
591+
}
592+
}
593+
582594
// Render segments
583595
const segmentWidth = 100 / segments;
584596
segmentData.forEach((color, index) => {

0 commit comments

Comments
 (0)