Skip to content

Commit

Permalink
Merge branch 'SignalK:master' into fix-plugin-ux
Browse files Browse the repository at this point in the history
  • Loading branch information
JacoKoster authored Sep 10, 2023
2 parents b444a03 + b0fd48f commit 3e96e58
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/server-admin-ui/src/views/Dashboard/Dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ const Dashboard = (props) => {
<ul className="horizontal-bars type-2">
{Object.keys(providerStatistics || {}).map((providerId) => {
const providerStats = providerStatistics[providerId]
let linkType = 'provider'
try {
linkType = providerStatus.find(
(item) => item.id === providerId
).statusType
} catch (error) {}
const inputPulseIconClass =
'icon-login text-primary' +
(providerStats.deltaRate > 50
Expand Down Expand Up @@ -114,7 +120,9 @@ const Dashboard = (props) => {
}}
/>
<span className="title">
{providerIdLink(providerId)}
{linkType === 'plugin'
? pluginNameLink(providerId)
: providerIdLink(providerId)}
</span>
<span className="value">
{' '}
Expand Down

0 comments on commit 3e96e58

Please sign in to comment.