Skip to content

Commit

Permalink
fix paging in course
Browse files Browse the repository at this point in the history
  • Loading branch information
tgloeggl committed May 22, 2024
1 parent 0464898 commit 4f88e61
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 16 deletions.
1 change: 1 addition & 0 deletions vueapp/components/Videos/VideosAddFromCourses.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
:selectable="true"
:showActions="false"
:cid="selectedCourse.id"
:nolimit="true"
@selectedVideosChange="updateSelectedVideos"
/>
</div>
Expand Down
20 changes: 6 additions & 14 deletions vueapp/components/Videos/VideosTable.vue
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
<template>
<div>
<!--
<MessageBox type="info" v-if="playlistForVideos">
{{ $gettext('Bitte wählen Sie die Videos aus, die zur Wiedergabeliste hinzugefügt werden sollen.') }}
</MessageBox>
<h3 v-if="playlistForVideos">
{{ playlistForVideos.title }}
<div class="oc--tags oc--tags-playlist">
<Tag v-for="tag in playlistForVideos.tags" v-bind:key="tag.id" :tag="tag.tag" />
</div>
</h3>
-->

<SearchBar v-if="!videoSortMode"
:availableTags="videosTags"
:availablePlaylists="playlists"
Expand All @@ -20,7 +8,7 @@
@search="doSearch"
/>

<PaginationButtons v-if="!editable"
<PaginationButtons v-if="!nolimit"
:paging="paging"
@changePage="changePage"
@changeLimit="changeLimit"
Expand Down Expand Up @@ -260,6 +248,10 @@ export default {
'trashBin' : {
type: Boolean,
default: false
},
'nolimit': {
type: Boolean,
default: false
}
},
Expand Down Expand Up @@ -370,7 +362,7 @@ export default {
order: this.order,
cid: this.cid,
token: this.playlist.token,
limit: this.editable ? -1 : this.limit
limit: this.nolimit ? -1 : this.limit
}).then(this.loadVideosFinished);
} else if(this.isCourse && !this.playlist) {
this.$store.dispatch('loadCourseVideos', {
Expand Down
1 change: 0 additions & 1 deletion vueapp/views/Videos.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
</template>

<script>
import { mapGetters } from "vuex";
import VideosTable from "@/components/Videos/VideosTable";
export default {
Expand Down
1 change: 0 additions & 1 deletion vueapp/views/VideosTrashed.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
</template>

<script>
import { mapGetters } from "vuex";
import VideosTable from "@/components/Videos/VideosTable";
export default {
Expand Down

0 comments on commit 4f88e61

Please sign in to comment.