mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-06-17 15:50:10 +02:00
fixed ban/unban components
This commit is contained in:
@@ -98,8 +98,8 @@ define('forum/account/header', [
|
||||
if (err) {
|
||||
return app.alertError(err.message);
|
||||
}
|
||||
$('#banAccountBtn').toggleClass('hide', true);
|
||||
$('#banLabel, #unbanAccountBtn').toggleClass('hide', false);
|
||||
components.get('account/ban').parent().addClass('hide');
|
||||
components.get('account/unban').parent().removeClass('hide');
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -110,8 +110,9 @@ define('forum/account/header', [
|
||||
if (err) {
|
||||
return app.alertError(err.message);
|
||||
}
|
||||
$('#banAccountBtn').toggleClass('hide', false);
|
||||
$('#banLabel, #unbanAccountBtn').toggleClass('hide', true);
|
||||
|
||||
components.get('account/ban').parent().removeClass('hide');
|
||||
components.get('account/unban').parent().addClass('hide');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user