mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-05 20:11:26 +01:00
use components
This commit is contained in:
@@ -90,8 +90,8 @@ define('forum/account/header', [
|
||||
return app.alertError(err.message);
|
||||
}
|
||||
|
||||
$('#follow-btn').toggleClass('hide', type === 'follow');
|
||||
$('#unfollow-btn').toggleClass('hide', type === 'unfollow');
|
||||
components.get('account/follow').toggleClass('hide', type === 'follow');
|
||||
components.get('account/unfollow').toggleClass('hide', type === 'unfollow');
|
||||
app.alertSuccess('[[global:alert.' + type + ', ' + ajaxify.data.username + ']]');
|
||||
});
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user