Compare commits

...

1 commit

Author SHA1 Message Date
rinsuki
8923dce494 ハイライトでread moreできないように 2020-01-10 00:15:14 +09:00
2 changed files with 11 additions and 6 deletions

View file

@ -82,14 +82,18 @@ export default (opts) => ({
limit: (this.pagination.limit || 10) + 1, limit: (this.pagination.limit || 10) + 1,
...params ...params
}).then(x => { }).then(x => {
if (x.length == (this.pagination.limit || 10) + 1) { if (this.pagination.forceDisableReadmore) {
x.pop();
this.items = x;
this.more = true;
} else {
this.items = x;
this.more = false; this.more = false;
} else {
if (x.length == (this.pagination.limit || 10) + 1) {
x.pop();
this.more = true;
} else {
this.more = false;
}
} }
this.items = x;
this.offset = x.length; this.offset = x.length;
this.inited = true; this.inited = true;
this.fetching = false; this.fetching = false;

View file

@ -25,6 +25,7 @@ export default Vue.extend({
pagination: { pagination: {
endpoint: 'notes/featured', endpoint: 'notes/featured',
limit: 29, limit: 29,
forceDisableReadmore: true,
}, },
notesComponent: notesComponent: