aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-03-11 10:55:09 +0100
committerChocobozzz <me@florianbigard.com>2021-03-24 18:18:40 +0100
commit829523cfa5177a1810d9373f9a25bf3b18138d1e (patch)
tree0e4604f768c24220a486685ccb2938b95d5251e3 /shared
parent5d43dae3699d088698560851cb6f35f3dbc70c69 (diff)
downloadPeerTube-829523cfa5177a1810d9373f9a25bf3b18138d1e.tar.gz
PeerTube-829523cfa5177a1810d9373f9a25bf3b18138d1e.tar.zst
PeerTube-829523cfa5177a1810d9373f9a25bf3b18138d1e.zip
Reduce bundle size using a const enum
Diffstat (limited to 'shared')
-rw-r--r--shared/models/users/user-notification.model.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared/models/users/user-notification.model.ts b/shared/models/users/user-notification.model.ts
index e2f2234e4..b04619685 100644
--- a/shared/models/users/user-notification.model.ts
+++ b/shared/models/users/user-notification.model.ts
@@ -1,7 +1,7 @@
1import { FollowState } from '../actors' 1import { FollowState } from '../actors'
2import { AbuseState } from '../moderation' 2import { AbuseState } from '../moderation'
3 3
4export enum UserNotificationType { 4export const enum UserNotificationType {
5 NEW_VIDEO_FROM_SUBSCRIPTION = 1, 5 NEW_VIDEO_FROM_SUBSCRIPTION = 1,
6 NEW_COMMENT_ON_MY_VIDEO = 2, 6 NEW_COMMENT_ON_MY_VIDEO = 2,
7 NEW_ABUSE_FOR_MODERATORS = 3, 7 NEW_ABUSE_FOR_MODERATORS = 3,