Skip to content

Commit

Permalink
fix(orb-ui) On backends card, add state colors (#2529)
Browse files Browse the repository at this point in the history
  • Loading branch information
joao-mendonca-encora authored Jul 26, 2023
1 parent c1abb8d commit d4fff74
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
tabTitle="{{backend.key}}">
<p><label>Version:</label> {{backend.value.version}}</p>
<ng-container *ngIf="agent?.last_hb_data?.backend_state">
<p><label>State</label> {{agent.last_hb_data.backend_state[backend.key].state}}</p>
<p><label>Last Restart</label> {{agent.last_hb_data.backend_state[backend.key].last_restart_ts | date:'full'}}</p>
<p><label>State:</label> <span class="orb-service-{{agent.last_hb_data.backend_state[backend.key].state}}"> {{agent.last_hb_data.backend_state[backend.key].state}} </span></p>
<p><label>Last Restart:</label> {{agent.last_hb_data.backend_state[backend.key].last_restart_ts | date:'full'}}</p>
<div *ngIf="agent.last_hb_data.backend_state[backend.key].error">
<p class="error"><label>Error:</label> {{ agent.last_hb_data.backend_state[backend.key].error }} </p>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,20 @@ nb-card {
}
}
}
.orb-service- {
&running {
color: #6fcf97;
}
&unknown {
color: #f2994a;
}
&backend_error, &agent_error {
color: #df316f;
}
&offline {
color: #969fb9;
}
}

::ng-deep {

Expand Down

0 comments on commit d4fff74

Please sign in to comment.