Fix text about banning user

This commit is contained in:
gplane 2017-04-22 23:38:59 +08:00
parent 8056216d3f
commit 80f82b4b87

View File

@ -534,10 +534,10 @@ function initUsersTable() {
}
if (row.permission === -1) {
bannedOption = `<li class="divider"></li>
<li><a id="ban" href="javascript:changeBanStatus(${row.uid});">${trans('admin.ban')}</a></li>`;
<li><a id="ban" href="javascript:changeBanStatus(${row.uid});">${trans('admin.unban')}</a></li>`;
} else {
bannedOption = `<li class="divider"></li>
<li><a id="ban" href="javascript:changeBanStatus(${row.uid});">${trans('admin.unban')}</a></li>`;
<li><a id="ban" href="javascript:changeBanStatus(${row.uid});">${trans('admin.ban')}</a></li>`;
}
}