Bugzilla – Attachment 150282 Details for
Bug 32474
Implement infinite scroll in vue-select
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32474: Do not fetch all the licenses
Bug-32474-Do-not-fetch-all-the-licenses.patch (text/plain), 1.75 KB, created by
Jonathan Druart
on 2023-04-27 07:00:01 UTC
(
hide
)
Description:
Bug 32474: Do not fetch all the licenses
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-04-27 07:00:01 UTC
Size:
1.75 KB
patch
obsolete
>From 63cb29fe7a3812bbc3e9ee93bfea86cd8e1de0e7 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 27 Apr 2023 08:54:25 +0200 >Subject: [PATCH] Bug 32474: Do not fetch all the licenses > >Otherwise we are loosing all the point of the pagination! >--- > .../prog/js/vue/components/ERM/AgreementLicenses.vue | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementLicenses.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementLicenses.vue >index 88e1d75befe..6d698a2abdf 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementLicenses.vue >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementLicenses.vue >@@ -83,7 +83,7 @@ > </li> > </ol> > </fieldset> >- <a v-if="licenses.length" class="btn btn-default" @click="addLicense" >+ <a v-if="license_count > 0" class="btn btn-default" @click="addLicense" > ><font-awesome-icon icon="plus" /> {{ $__("Add new license") }}</a > > > <span v-else>{{ $__("There are no licenses created yet") }}</span> >@@ -98,7 +98,7 @@ export default { > name: "AgreementLicenses", > data() { > return { >- licenses: [], >+ license_count: null, > } > }, > props: { >@@ -108,9 +108,9 @@ export default { > }, > beforeCreate() { > const client = APIClient.erm >- client.licenses.getAll().then( >- licenses => { >- this.licenses = licenses >+ client.licenses.count().then( >+ count => { >+ this.license_count = count > this.initialized = true > }, > error => {} >-- >2.25.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 32474
:
144614
|
144719
|
144720
|
145143
|
145144
|
145154
|
150030
|
150031
|
150282
|
150283
|
150284
|
150287
|
150305
|
150308
|
150309
|
153110
|
153111
|
153112
|
153113
|
154094
|
156410
|
156470
|
156471
|
156472
|
156473
|
156474
|
156475
|
156476
|
156477
|
156478
|
156479
|
156481
|
156482
|
156483
|
156504
|
156505
|
159327
|
159328
|
159329
|
159330
|
159340
|
159343
|
159386
|
159389
|
159395
|
159397
|
159398
|
159399
|
159400
|
159401
|
159402
|
159403
|
159404
|
159405
|
159406
|
159407
|
161724