.viewOnly && 'no-click'}`}
>
<button
+ disabled={!UserService.Instance.user}
className={`btn p-0 ${
this.state.my_vote == 1 ? 'text-info' : 'text-muted'
}`}
<div class={`font-weight-bold text-muted`}>{this.state.score}</div>
{WebSocketService.Instance.site.enable_downvotes && (
<button
+ disabled={!UserService.Instance.user}
className={`btn p-0 ${
this.state.my_vote == -1 ? 'text-danger' : 'text-muted'
}`}
.viewOnly && 'no-click'}`}
>
<button
+ disabled={!UserService.Instance.user}
className={`btn p-0 ${
this.state.my_vote == 1 ? 'text-info' : 'text-muted'
}`}
<div class={`font-weight-bold text-muted`}>{this.state.score}</div>
{WebSocketService.Instance.site.enable_downvotes && (
<button
+ disabled={!UserService.Instance.user}
className={`btn p-0 ${
this.state.my_vote == -1 ? 'text-danger' : 'text-muted'
}`}