diff options
author | Chocobozzz <me@florianbigard.com> | 2021-03-11 10:55:09 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-03-24 18:18:40 +0100 |
commit | 829523cfa5177a1810d9373f9a25bf3b18138d1e (patch) | |
tree | 0e4604f768c24220a486685ccb2938b95d5251e3 /shared/models/users | |
parent | 5d43dae3699d088698560851cb6f35f3dbc70c69 (diff) | |
download | PeerTube-829523cfa5177a1810d9373f9a25bf3b18138d1e.tar.gz PeerTube-829523cfa5177a1810d9373f9a25bf3b18138d1e.tar.zst PeerTube-829523cfa5177a1810d9373f9a25bf3b18138d1e.zip |
Reduce bundle size using a const enum
Diffstat (limited to 'shared/models/users')
-rw-r--r-- | shared/models/users/user-notification.model.ts | 2 |
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 @@ | |||
1 | import { FollowState } from '../actors' | 1 | import { FollowState } from '../actors' |
2 | import { AbuseState } from '../moderation' | 2 | import { AbuseState } from '../moderation' |
3 | 3 | ||
4 | export enum UserNotificationType { | 4 | export 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, |