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 (#2350)
  • Loading branch information
liuchengyu committed Feb 2, 2024
1 parent 3be4d52 commit 89aa2a3
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>

Check warning

Code scanning / CodeQL

Potentially unsafe external link Medium

External links without noopener/noreferrer are a potential security risk.
<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>

Check warning

Code scanning / CodeQL

Potentially unsafe external link Medium

External links without noopener/noreferrer are a potential security risk.
</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 89aa2a3

Please sign in to comment.