@saooti/octopus-sdk 41.0.9-SNAPSHOT → 41.0.10-SNAPSHOT
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/display/list/ListPaginate.vue +2 -13
- package/src/components/display/playlist/PodcastList.vue +1 -1
- package/src/components/display/podcasts/PodcastFilterList.vue +1 -1
- package/src/components/display/podcasts/PodcastList.vue +1 -1
- package/src/components/pages/EmissionPage.vue +2 -2
- package/src/components/pages/ParticipantPage.vue +2 -2
- package/src/components/pages/PlaylistPage.vue +1 -1
package/package.json
CHANGED
|
@@ -54,7 +54,7 @@ import PaginateParams from "./PaginateParams.vue";
|
|
|
54
54
|
import PaginateSection from "./PaginateSection.vue";
|
|
55
55
|
import {useResizePhone} from "../../composable/useResizePhone";
|
|
56
56
|
import { useRouteUpdateParams } from "../../composable/route/useRouteUpdateParams";
|
|
57
|
-
import { computed,
|
|
57
|
+
import { computed, watch } from "vue";
|
|
58
58
|
import { usePlayerStore } from "../../../stores/PlayerStore";
|
|
59
59
|
import { useI18n } from "vue-i18n";
|
|
60
60
|
|
|
@@ -78,8 +78,6 @@ const props = defineProps({
|
|
|
78
78
|
//Emits
|
|
79
79
|
const emit = defineEmits(["update:first", "update:rowsPerPage", "update:isMobile"]);
|
|
80
80
|
|
|
81
|
-
//Data
|
|
82
|
-
const internSizeChange = ref(false);
|
|
83
81
|
|
|
84
82
|
//Composables
|
|
85
83
|
const { t } = useI18n();
|
|
@@ -100,13 +98,6 @@ const rangeSize = computed(() => {
|
|
|
100
98
|
|
|
101
99
|
//Watch
|
|
102
100
|
watch(isPhone, () => {emit("update:isMobile", isPhone.value);}, {immediate: true});
|
|
103
|
-
watch(()=>props.first, () => {
|
|
104
|
-
if (internSizeChange.value) {
|
|
105
|
-
internSizeChange.value = false;
|
|
106
|
-
return;
|
|
107
|
-
}
|
|
108
|
-
updateRouteParam({pr:(Math.floor(props.first / props.rowsPerPage) + 1).toString()}, props.forceUpdateParameters);
|
|
109
|
-
});
|
|
110
101
|
|
|
111
102
|
//Methods
|
|
112
103
|
function fetchMore() {
|
|
@@ -115,12 +106,10 @@ function fetchMore() {
|
|
|
115
106
|
function changeFirst(firstValue: number) {
|
|
116
107
|
scrollToTop();
|
|
117
108
|
emit("update:first", firstValue);
|
|
109
|
+
updateRouteParam({pr:(Math.floor(firstValue/ props.rowsPerPage) + 1).toString()}, props.forceUpdateParameters);
|
|
118
110
|
}
|
|
119
111
|
function changeSize(sizeValue: number) {
|
|
120
112
|
scrollToTop();
|
|
121
|
-
if (0 !== props.first) {
|
|
122
|
-
internSizeChange.value = true;
|
|
123
|
-
}
|
|
124
113
|
emit("update:rowsPerPage", sizeValue);
|
|
125
114
|
updatePaginateSize(sizeValue, props.forceUpdateParameters);
|
|
126
115
|
}
|
|
@@ -71,16 +71,16 @@
|
|
|
71
71
|
/>
|
|
72
72
|
<PodcastFilterList
|
|
73
73
|
v-if="isInit"
|
|
74
|
+
v-model:query="searchPattern"
|
|
74
75
|
class="mx-2"
|
|
75
76
|
:first="paginateFirst"
|
|
76
77
|
:size="ps"
|
|
77
|
-
v-model:query="searchPattern"
|
|
78
78
|
:show-count="true"
|
|
79
79
|
:emission-id="emissionId"
|
|
80
80
|
:category-filter="false"
|
|
81
81
|
:edit-right="editRight"
|
|
82
82
|
:productor-id="[emission.orga.id]"
|
|
83
|
-
:
|
|
83
|
+
:force-update-parameters="true"
|
|
84
84
|
@fetch="podcastsFetched"
|
|
85
85
|
/>
|
|
86
86
|
</section>
|
|
@@ -48,16 +48,16 @@
|
|
|
48
48
|
<!-- productorId define to avoid overwrite #12817 -->
|
|
49
49
|
<PodcastFilterList
|
|
50
50
|
v-if="isInit"
|
|
51
|
+
v-model:query="searchPattern"
|
|
51
52
|
:first="paginateFirst"
|
|
52
53
|
:size="ps"
|
|
53
|
-
v-model:query="searchPattern"
|
|
54
54
|
:participant-id="participantId"
|
|
55
55
|
:name="name"
|
|
56
56
|
:category-filter="true"
|
|
57
57
|
:productor-id="['']"
|
|
58
58
|
:reload="reload"
|
|
59
59
|
:show-count="true"
|
|
60
|
-
:
|
|
60
|
+
:force-update-parameters="true"
|
|
61
61
|
/>
|
|
62
62
|
</template>
|
|
63
63
|
<ClassicLoading
|