Merge branch 'dev' into materialized_views

This commit is contained in:
Dessalines 2020-01-14 10:49:30 -05:00
commit 435ecf5cec
2 changed files with 4 additions and 0 deletions

View File

@ -105,6 +105,7 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> {
.viewOnly && 'no-click'}`}
>
<button
disabled={!UserService.Instance.user}
className={`btn p-0 ${
this.state.my_vote == 1 ? 'text-info' : 'text-muted'
}`}
@ -117,6 +118,7 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> {
<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'
}`}

View File

@ -111,6 +111,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
.viewOnly && 'no-click'}`}
>
<button
disabled={!UserService.Instance.user}
className={`btn p-0 ${
this.state.my_vote == 1 ? 'text-info' : 'text-muted'
}`}
@ -123,6 +124,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
<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'
}`}