Skip to content

Commit

Permalink
show if video is public in video tables
Browse files Browse the repository at this point in the history
  • Loading branch information
tgloeggl committed Jun 6, 2024
1 parent 3e32494 commit f2ea418
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
11 changes: 11 additions & 0 deletions courseware/vueapp/components/VideoRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,17 @@
/>
</div>

<div data-tooltip class="tooltip" v-if="event.visibility == 'public'">
<span class="tooltip-content">
{{ $gettext('Dieses Video ist öffentlich.') }}
</span>
<studip-icon
shape="globe"
role="status-yellow"
:size="18"
/>
</div>

<div data-tooltip class="tooltip" v-if="getInfoText">
<span class="tooltip-content" v-html="getInfoText"></span>
<studip-icon shape="info-circle" role="active" :size="18"></studip-icon>
Expand Down
3 changes: 3 additions & 0 deletions courseware/vueapp/courseware-plugin-opencast-video.vue
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ export default {
isCurrentVideoLTIAuthenticated() {
if (this.videos.length > 0) {
let currentVideo = this.videos.find(video => video.token === this.currentVideoId);
if (!currentVideo) {
return false;
}
return this.isLTIAuthenticated[currentVideo.config_id];
}
return false;
Expand Down
11 changes: 11 additions & 0 deletions vueapp/components/Videos/VideoRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,17 @@
<studip-icon shape="info-circle" role="active" :size="18"></studip-icon>
</div>

<div data-tooltip class="tooltip" v-if="event.visibility == 'public'">
<span class="tooltip-content">
{{ $gettext('Dieses Video ist öffentlich.') }}
</span>
<studip-icon
shape="globe"
role="status-yellow"
:size="18"
/>
</div>

<div data-tooltip class="tooltip" v-if="getAccessText && canEdit">
<span class="tooltip-content" v-html="getAccessText"></span>
<studip-icon
Expand Down

0 comments on commit f2ea418

Please sign in to comment.