Skip to content
This repository was archived by the owner on Apr 14, 2023. It is now read-only.

Commit a8083e0

Browse files
committed
fix pagination of cve page
1 parent 755f098 commit a8083e0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

resources/assets/components/VulnerabilitiesComponent.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<div>
66
<h2 class="font-sans tracking-wide font-light text-4xl pb-4">PHP Vulnerabilities</h2>
77
<p class="font-sans tracking-wide font-light pb-4">PHP has had its share of vulnerabilities pop up. Check back here as we update this daily.</p>
8-
<input class="mb-4 w-1/5 shadow appearance-none border rounded py-2 px-3 text-grey-darker leading-tight focus:outline-none focus:shadow-outline" id="search" type="text" placeholder="Search PHP Versions" v-model="search">
8+
<input class="mb-4 w-1/5 shadow appearance-none border rounded py-2 px-3 text-grey-darker leading-tight focus:outline-none focus:shadow-outline" id="search" type="text" placeholder="Search CVEs" v-model="search">
99
<table class="w-full table-auto">
1010
<thead>
1111
<tr>
@@ -85,16 +85,16 @@
8585
getVulnerabilities() {
8686
axios.get('/api/vulnerabilities').then(response => {
8787
this.vulnerabilities = response.data.data;
88-
this.links = response.meta.pagination.links;
88+
this.links = response.data.meta.pagination.links;
8989
}).catch(err => {
9090
console.log(err);
9191
});
9292
},
9393
9494
getPreviousPage() {
95-
axios.get(this.links.prev).then(response => {
95+
axios.get(this.links.previous).then(response => {
9696
this.vulnerabilities = response.data.data;
97-
this.links = response.meta.pagination.links;
97+
this.links = response.data.meta.pagination.links;
9898
this.currentPage = this.currentPage - 1;
9999
}).catch(err => {
100100
console.log(err);
@@ -104,7 +104,7 @@
104104
getNextPage() {
105105
axios.get(this.links.next).then(response => {
106106
this.vulnerabilities = response.data.data;
107-
this.links = response.meta.pagination.links;
107+
this.links = response.data.meta.pagination.links;
108108
this.currentPage = this.currentPage + 1;
109109
}).catch(err => {
110110
console.log(err);

0 commit comments

Comments
 (0)