Merge branch 'release/3.3.0' into develop
This commit is contained in:
commit
ac27887774
|
@ -86,7 +86,7 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<my-video-description [video]="video"></my-video-description>
|
<my-video-description [video]="video" (timestampClicked)="handleTimestampClicked($event)"></my-video-description>
|
||||||
|
|
||||||
<my-video-attributes [video]="video"></my-video-attributes>
|
<my-video-attributes [video]="video"></my-video-attributes>
|
||||||
|
|
||||||
|
|
|
@ -379,28 +379,24 @@ export class VideoService implements VideosProvider {
|
||||||
}
|
}
|
||||||
|
|
||||||
explainedPrivacyLabels (serverPrivacies: VideoConstant<VideoPrivacy>[], defaultPrivacyId = VideoPrivacy.PUBLIC) {
|
explainedPrivacyLabels (serverPrivacies: VideoConstant<VideoPrivacy>[], defaultPrivacyId = VideoPrivacy.PUBLIC) {
|
||||||
const descriptions = [
|
const descriptions = {
|
||||||
{
|
[VideoPrivacy.PRIVATE]: $localize`Only I can see this video`,
|
||||||
id: VideoPrivacy.PRIVATE,
|
[VideoPrivacy.UNLISTED]: $localize`Only shareable via a private link`,
|
||||||
description: $localize`Only I can see this video`
|
[VideoPrivacy.PUBLIC]: $localize`Anyone can see this video`,
|
||||||
},
|
[VideoPrivacy.INTERNAL]: $localize`Only users of this instance can see this video`
|
||||||
{
|
}
|
||||||
id: VideoPrivacy.UNLISTED,
|
|
||||||
description: $localize`Only shareable via a private link`
|
const videoPrivacies = serverPrivacies.map(p => {
|
||||||
},
|
return {
|
||||||
{
|
...p,
|
||||||
id: VideoPrivacy.PUBLIC,
|
|
||||||
description: $localize`Anyone can see this video`
|
description: descriptions[p.id]
|
||||||
},
|
|
||||||
{
|
|
||||||
id: VideoPrivacy.INTERNAL,
|
|
||||||
description: $localize`Only users of this instance can see this video`
|
|
||||||
}
|
}
|
||||||
]
|
})
|
||||||
|
|
||||||
return {
|
return {
|
||||||
defaultPrivacyId: serverPrivacies.find(p => p.id === defaultPrivacyId)?.id || serverPrivacies[0].id,
|
videoPrivacies,
|
||||||
videoPrivacies: serverPrivacies.map(p => ({ ...p, description: descriptions.find(p => p.id).description }))
|
defaultPrivacyId: serverPrivacies.find(p => p.id === defaultPrivacyId)?.id || serverPrivacies[0].id
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -29,15 +29,6 @@
|
||||||
height: 100% !important;
|
height: 100% !important;
|
||||||
left: 0;
|
left: 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
div {
|
|
||||||
@include miniature-thumbnail;
|
|
||||||
|
|
||||||
display: inline-flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
color: pvar(--inputPlaceholderColor);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.chip {
|
.chip {
|
||||||
|
|
Loading…
Reference in New Issue