Skip to content

Commit f2e1e1e

Browse files
Merge pull request #50 from lepidus/main
fix/fixed Thoth panel pagination (OMP 3.4.0)
2 parents ae2bce4 + a676a79 commit f2e1e1e

3 files changed

Lines changed: 12 additions & 13 deletions

File tree

js/ui/components/ListPanel/ThothListItem.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const thothListItemTemplate = pkp.Vue.compile(`
2-
<div>
2+
<div>
33
<div class="listPanel__itemSummary">
44
<label class="listPanel__selectWrapper">
55
<div class="listPanel__selector">
@@ -87,13 +87,13 @@ const ListItem = SubmissionsListItemComponents.ListItem;
8787

8888

8989
pkp.Vue.component('thoth-list-item', {
90-
name: 'ThothListItem',
90+
name: 'ThothListItem',
9191
components: {
9292
Expander,
9393
List,
9494
ListItem
9595
},
96-
props: {
96+
props: {
9797
errors: {
9898
type: Array,
9999
default() {
@@ -136,7 +136,7 @@ pkp.Vue.component('thoth-list-item', {
136136
this.$emit('select-item', this.item.id);
137137
}
138138
},
139-
render: function(h) {
139+
render: function(h) {
140140
return thothListItemTemplate.render.call(this, h);
141141
}
142142
});

js/ui/components/ListPanel/ThothListPanel.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const thothListTemplate = pkp.Vue.compile(`
2-
<div>
2+
<div>
33
<list-panel
44
:isSidebarVisible="isSidebarVisible"
55
:items="items"
@@ -125,22 +125,22 @@ const dialog = ManageEmailsPage.mixins[0];
125125
const ListPanel = SubmissionsListPanel.components.ListPanel;
126126
const Modal = ManageEmailsPage.components.Modal;
127127
const Notification = ListPanel.components.Notification;
128-
const Pagination = SubmissionsListPanel.components.PkpHeader;
128+
const Pagination = SubmissionsListPanel.components.Pagination;
129129
const PkpHeader = ListPanel.components.PkpHeader;
130130
const PkpFilter = SubmissionsListPanel.components.PkpFilter;
131131
const Search = SubmissionsListPanel.components.Search;
132132

133133
pkp.Vue.component('thoth-list-panel', {
134-
name: 'ThothListPanel',
134+
name: 'ThothListPanel',
135135
components: {
136-
ListPanel,
136+
ListPanel,
137137
Modal,
138138
Notification,
139139
Pagination,
140140
PkpHeader,
141141
PkpFilter,
142142
Search
143-
},
143+
},
144144
mixins: [fetch, dialog],
145145
props: {
146146
csrfToken: {
@@ -288,7 +288,6 @@ pkp.Vue.component('thoth-list-panel', {
288288
],
289289
});
290290
}
291-
292291
},
293292
registerAll() {
294293
this.startedItems = [...this.selected];
@@ -337,7 +336,7 @@ pkp.Vue.component('thoth-list-panel', {
337336
&& this.selected.length === this.items.filter((item) => !item.thothWorkId).length;
338337
}
339338
},
340-
render: function(h) {
339+
render: function(h) {
341340
return thothListTemplate.render.call(this, h);
342341
}
343342
});

version.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<version>
44
<application>thoth</application>
55
<type>plugins.generic</type>
6-
<release>0.2.8.5</release>
7-
<date>2025-08-15</date>
6+
<release>0.2.8.6</release>
7+
<date>2025-08-26</date>
88
<lazy-load>1</lazy-load>
99
<class>ThothPlugin</class>
1010
</version>

0 commit comments

Comments
 (0)