Skip to content

table-formatter.js: Fix icon selection logic#2481

Merged
BareosBot merged 2 commits intobareos:bareos-25from
sebsura:backport/bareos-25/fix-client-logos
Dec 12, 2025
Merged

table-formatter.js: Fix icon selection logic#2481
BareosBot merged 2 commits intobareos:bareos-25from
sebsura:backport/bareos-25/fix-client-logos

Conversation

@sebsura
Copy link
Contributor

@sebsura sebsura commented Dec 12, 2025

Backport of PR #2479 to bareos-25

Checklist for the reviewer of the PR (will be processed by the Bareos team)

Make sure you check/merge the PR using devtools/pr-tool to have some simple automated checks run and a proper changelog record added.

General
  • Correct milestone is set
Source code quality (if there were changes to the original PR)
  • Source code changes are understandable
  • Variable and function names are meaningful
  • Code comments are correct (logically and spelling)
  • Required documentation changes are present and part of the PR

Backport quality

@sebsura sebsura added the is a backport to 25 This is a backport from master to bareos-25 label Dec 12, 2025
@sebsura sebsura added this to the 25.0.2 milestone Dec 12, 2025
@sebsura sebsura requested a review from pstorz December 12, 2025 08:29
This fixes two problems:
- It is not useful here to construct a map, and its iteration is
  broken (`values()` doesn’t do what’s expected here);
- The Windows case would catch `darwin` because it contains `win`.

Signed-off-by: Benjamin Somers <benjamin.somers@imt-atlantique.fr>
(cherry picked from commit 0903e1b)
@sebsura sebsura force-pushed the backport/bareos-25/fix-client-logos branch from 6dc7e84 to af5b083 Compare December 12, 2025 09:41
@BareosBot BareosBot merged commit f6ab40c into bareos:bareos-25 Dec 12, 2025
1 check was pending
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

is a backport to 25 This is a backport from master to bareos-25

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants