- const newPrivacies = privacies.slice()
-
- const privatePrivacy = newPrivacies.find(p => p.id === VideoPrivacy.PRIVATE)
- if (privatePrivacy) privatePrivacy.label = this.i18n('Only I can see this video')
-
- const unlistedPrivacy = newPrivacies.find(p => p.id === VideoPrivacy.UNLISTED)
- if (unlistedPrivacy) unlistedPrivacy.label = this.i18n('Only people with the private link can see this video')
+ const base = [
+ {
+ id: VideoPrivacy.PRIVATE,
+ label: this.i18n('Only I can see this video')
+ },
+ {
+ id: VideoPrivacy.UNLISTED,
+ label: this.i18n('Only people with the private link can see this video')
+ },
+ {
+ id: VideoPrivacy.PUBLIC,
+ label: this.i18n('Anyone can see this video')
+ },
+ {
+ id: VideoPrivacy.INTERNAL,
+ label: this.i18n('Only users of this instance can see this video')
+ }
+ ]