···91919292 div
9393 className: "#{bn}__pp"
9494- if shouldShowPp(score.beatmapset)
9494+ if shouldShowPp(score.beatmap)
9595 el React.Fragment, null,
9696 el PpValue,
9797 score: score
+18
resources/assets/lib/stores/ui-state-store.ts
···22// See the LICENCE file in the repository root for full licence text.
3344import { CommentBundleJson } from 'interfaces/comment-json';
55+import { route } from 'laroute';
56import { Dictionary, orderBy } from 'lodash';
67import { action, observable } from 'mobx';
78import { Comment, CommentSort } from 'models/comment';
···9192 this.updatePinnedCommentIds(commentBundle);
92939394 this.orderedCommentsByParentId = {};
9595+ this.comments.isShowDeleted = currentUser?.user_preferences?.comments_show_deleted ?? false;
9696+ }
9797+9898+ @action
9999+ toggleShowDeletedComments() {
100100+ this.comments.isShowDeleted = !this.comments.isShowDeleted;
101101+102102+ if (currentUser.id != null) {
103103+ $.ajax(route('account.options'), {
104104+ data: {
105105+ user_profile_customization: {
106106+ comments_show_deleted: this.comments.isShowDeleted,
107107+ },
108108+ },
109109+ method: 'PUT',
110110+ });
111111+ }
94112 }
9511396114 @action
···1414 ],
15151616 'voting' => [
1717+ 'login_required' => 'Please sign in to vote.',
1718 'over' => 'Voting for this contest has ended',
1818- 'login_required' => 'Please sign in to vote.',
1919+ 'show_voted_only' => 'Show voted',
19202021 'best_of' => [
2122 'none_played' => "It doesn't look like you played any beatmaps that qualify for this contest!",
···11+{{--
22+ Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
33+ See the LICENCE file in the repository root for full licence text.
44+--}}
55+<script id="json-recommended-star-difficulty-all" type="application/json">
66+ {!! json_encode(optional(auth()->user())->recommendedStarDifficultyAll()) !!}
77+</script>