Skip to content
Snippets Groups Projects
Commit 94d531cc authored by Timothee P's avatar Timothee P :sunflower:
Browse files

Display real number of features under 15

parent 59ac415e
No related branches found
No related tags found
No related merge requests found
......@@ -102,10 +102,7 @@ export default {
},
created() {
let randomnum =
Math.floor(
Math.random() * 10000
);
let randomnum = Math.floor(Math.random() * 10000);
this.identifier = randomnum;
window.addEventListener("mousedown", this.clickOutsideDropdown);
},
......
......@@ -144,7 +144,8 @@
aria-live="polite"
>
Affichage de l'élément {{ pagination.start + 1 }} à
{{ pagination.end + 1 }} sur {{ filteredFeatures.length }} éléments
{{ displayedPageEnd }}
sur {{ filteredFeatures.length }} éléments
</div>
<div
class="dataTables_paginate paging_simple_numbers"
......@@ -252,6 +253,12 @@ export default {
}
return filterdFeatures.slice(this.pagination.start, this.pagination.end);
},
displayedPageEnd() {
return this.pagination.end < 15
? this.filteredFeatures.length
: this.pagination.end + 1;
},
},
methods: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment