@@ -55,8 +55,9 @@ SPDX-License-Identifier: AGPL-3.0-only
5555 [$style.t_achievementEarned]:
5656 notification.type === 'achievementEarned' || notification.type === 'loginBonus',
5757 [$style.t_exportCompleted]: notification.type === 'exportCompleted',
58- [$style.t_login]: notification.type === 'login',
59- [$style.t_roleAssigned]:
58+ [$style.t_login]: notification.type === 'login',
59+ [$style.t_acceptPoints]: notification.type === 'acceptPoints',
60+ [$style.t_roleAssigned]:
6061 notification.type === 'roleAssigned' &&
6162 notification.role.iconUrl == null,
6263 },
@@ -90,6 +91,10 @@ SPDX-License-Identifier: AGPL-3.0-only
9091 v-else-if =" notification.type === 'loginBonus'"
9192 class =" ti ti-medal"
9293 ></i >
94+ <i
95+ v-else-if =" notification.type === 'acceptPoints'"
96+ class =" ti ti-medal"
97+ ></i >
9398<i v-else-if =" notification.type === 'exportCompleted'" class =" ti ti-archive" ></i >
9499 <i v-else-if =" notification.type === 'login'" class =" ti ti-login-2" ></i >
95100 <template v-else-if =" notification .type === ' roleAssigned' " >
@@ -140,7 +145,8 @@ SPDX-License-Identifier: AGPL-3.0-only
140145 notification.type === 'quote' ||
141146 notification.type === 'reaction' ||
142147 notification.type === 'receiveFollowRequest' ||
143- notification.type === 'followRequestAccepted'
148+ notification.type === 'followRequestAccepted' ||
149+ notification.type === 'acceptPoints'
144150 "
145151 v-user-preview =" notification.user.id"
146152 :class =" $style.headerName"
@@ -298,6 +304,18 @@ SPDX-License-Identifier: AGPL-3.0-only
298304 })
299305 }}
300306 </div >
307+ <div
308+ v-else-if =" notification.type === 'acceptPoints'"
309+ :class =" $style.text"
310+ >
311+ {{
312+ i18n.tsx._notification.acceptPoints({
313+ point: notification.getPoint,
314+ pointName: instance?.pointName ?? i18n.ts.point,
315+ sender: notification.user.username,
316+ })
317+ }}
318+ </div >
301319 <MkA
302320 v-else-if =" notification.type === 'achievementEarned'"
303321 :class =" $style.text"
@@ -488,6 +506,7 @@ function getActualReactedUsersCount(
488506 --eventReactionHeart : var (--MI_THEME-love );
489507 --eventReaction : #e99a0b ;
490508 --eventAchievement : #cb9a11 ;
509+ --eventAcceptPoints : #cb9a11 ;
491510 --eventLogin : #007aff ;
492511 --eventOther : #88a6b7 ;
493512}
@@ -612,6 +631,12 @@ function getActualReactedUsersCount(
612631 pointer-events : none ;
613632}
614633
634+ .t_acceptPoints {
635+ padding : 3px ;
636+ background : var (--eventAcceptPoints );
637+ pointer-events : none ;
638+ }
639+
615640.t_login {
616641 padding : 3px ;
617642 background : var (--eventLogin );
0 commit comments