Skip to content

Commit

Permalink
fix: The role displayed on the first Server in the Group area of the …
Browse files Browse the repository at this point in the history
…codis-fe is incorrect (OpenAtomFoundation#2350) (OpenAtomFoundation#2387)

Co-authored-by: liuchengyu <liuchengyu@360.cn>
  • Loading branch information
chengyu-l and liuchengyu authored Feb 7, 2024
1 parent 3d4a4d4 commit 38ba714
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion codis/cmd/fe/assets/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,10 @@ <h4 style="padding-left:30px; padding-right:20px; display: inline;">Group</h4>
</span>
</td>
<td>
<a ng-href="http://[[codis_addr]]/api/topom/group/info/[[server.server]]" target="_blank" class="btn btn-default btn-xs active" role="button">S</a>
<span ng-switch="$index">
<a ng-switch-when="0" ng-href="http://[[codis_addr]]/api/topom/group/info/[[server.server]]" target="_blank" class="btn btn-default btn-xs active" role="button">Master</a>
<a ng-switch-default ng-href="http://[[codis_addr]]/api/topom/group/info/[[server.server]]" target="_blank" class="btn btn-default btn-xs active" role="button">Slave</a>
</span>
<span ng-switch="server.ha_status">
<span ng-switch-when="ha_master" style="color: darkgreen"
data-toggle="tooltip" data-placement="right" title="HA: MASTER">
Expand Down

0 comments on commit 38ba714

Please sign in to comment.