Skip to content

Commit fa7bfac

Browse files
committed
surgically remove course content transfer feature "Kursinhalte übertragen".
This PR fixes elan-ev#1243 and includes the complete removal of the "Kursinhalte übertragen" feature from both the frontend and backend. All related code and logic have been cleaned up to fully eliminate this functionality.
1 parent c91ac49 commit fa7bfac

File tree

7 files changed

+2
-302
lines changed

7 files changed

+2
-302
lines changed

lib/RouteMap.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ public function authenticatedRoutes(RouteCollectorProxy $group)
6363

6464
$group->get("/videos/{token}/shares", Routes\Video\VideoSharesList::class);
6565
$group->put("/videos/{token}/shares", Routes\Video\VideoSharesUpdate::class);
66-
$group->post("/videos/{course_id}/copy", Routes\Video\VideoCopyToCourse::class);
6766

6867
$group->put("/videos/{token}/worldwide_share", Routes\Video\VideoWorldwideShareUpdate::class);
6968

lib/Routes/Video/VideoCopyToCourse.php

Lines changed: 0 additions & 91 deletions
This file was deleted.

vueapp/components/Courses/CoursesSidebar.vue

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -217,12 +217,6 @@
217217
{{ $gettext('Standard-Kurswiedergabeliste ändern') }}
218218
</a>
219219
</li>
220-
<li v-if="canEdit">
221-
<a href="#" @click.prevent="$emit('copyAll')">
222-
<studip-icon style="margin-left: -20px;" shape="export" role="clickable"/>
223-
{{ $gettext('Kursinhalte übertragen') }}
224-
</a>
225-
</li>
226220
</ul>
227221
</div>
228222
</div>
@@ -249,7 +243,6 @@ export default {
249243
emits: [
250244
'uploadVideo',
251245
'recordVideo',
252-
'copyAll',
253246
'editPlaylist',
254247
'sortVideo',
255248
'saveSortVideo',

vueapp/components/Videos/Actions/VideoCopyToSeminar.vue

Lines changed: 0 additions & 138 deletions
This file was deleted.

vueapp/components/Videos/VideosTable.vue

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -154,15 +154,6 @@
154154
</tfoot>
155155
</table>
156156

157-
<!--
158-
<div v-if="isCourse && Object.keys(videos).length > 0" class="oc--bulk-actions">
159-
<input type="checkbox" :checked="selectAll" @click.stop="toggleAll">
160-
<StudipButton icon="add" @click.stop="showCopyDialog">
161-
{{ $gettext('Verknüpfung mit anderen Kursen') }}
162-
</StudipButton>
163-
</div>
164-
-->
165-
166157
<template v-if="showActionDialog">
167158
<component :is="actionComponent"
168159
@cancel="clearAction"
@@ -597,19 +588,6 @@ export default {
597588
});
598589
}
599590
},
600-
601-
showCopyDialog() {
602-
this.$store.dispatch('clearMessages');
603-
if (this.selectedVideos.length > 0) {
604-
this.$store.dispatch('toggleCourseCopyDialog', true);
605-
this.$store.dispatch('setCourseVideosToCopy', this.selectedVideos);
606-
} else {
607-
this.$store.dispatch('addMessage', {
608-
type: 'warning',
609-
text: this.$gettext('Es wurden keine Videos ausgewählt!')
610-
});
611-
}
612-
},
613591
},
614592
615593
created() {

vueapp/store/videos.module.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ const state = {
2020
availableVideoCourses: [],
2121
videoShares: {},
2222
courseVideosToCopy: [],
23-
showCourseCopyDialog: false,
2423
videosReload: false,
2524
}
2625

@@ -69,10 +68,6 @@ const getters = {
6968
return state.courseVideosToCopy
7069
},
7170

72-
showCourseCopyDialog(state) {
73-
return state.showCourseCopyDialog
74-
},
75-
7671
videosReload(state) {
7772
return state.videosReload
7873
},
@@ -220,10 +215,6 @@ const actions = {
220215
return ApiService.post('videos/' + data.token + '/report', {description: data.description});
221216
},
222217

223-
async copyVideosToCourses(context, data) {
224-
return ApiService.post('videos/' + data.cid + '/copy', {courses: data.courses});
225-
},
226-
227218
async setVideoSort({dispatch, commit}, sort) {
228219
await commit('setVideoSort', sort)
229220
},
@@ -254,10 +245,6 @@ const actions = {
254245
commit('setCourseVideosToCopy', videos);
255246
},
256247

257-
toggleCourseCopyDialog({dispatch, state, commit}, mode) {
258-
commit('setShowCourseCopyDialog', mode);
259-
},
260-
261248
setVideosReload({commit}, mode) {
262249
commit('setVideosReload', mode)
263250
}
@@ -313,10 +300,6 @@ const mutations = {
313300
state.courseVideosToCopy = videos;
314301
},
315302

316-
setShowCourseCopyDialog(state, mode) {
317-
state.showCourseCopyDialog = mode;
318-
},
319-
320303
setAvailableVideoTags(state, data) {
321304
state.availableVideoTags = data;
322305
},

0 commit comments

Comments
 (0)