Skip to content

Commit

Permalink
removed travis cache, fixed login form
Browse files Browse the repository at this point in the history
  • Loading branch information
hunterlong committed Apr 10, 2020
1 parent e7e5167 commit edb3691
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
6 changes: 0 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@ before_script:
branches:
only:
- master
cache:
directories:
- ~/.npm
- ~/.cache
- $GOPATH/pkg/mod
- $GOPATH/src/github.com/statping/statping/frontend/node_modules
env:
global:
- "PATH=$HOME/.local/bin:$PATH"
Expand Down
17 changes: 15 additions & 2 deletions frontend/src/components/Service/ServiceFailures.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
<p class="mb-1">{{failure.issue}}</p>
</div>

<nav v-if="total > 4" aria-label="page navigation example">
<nav v-if="total > 4" class="mt-3">
<ul class="pagination justify-content-center">
<li class="page-item" :class="{'disabled': page===1}">
<a @click.prevent="gotoPage(page-1)" :disabled="page===1" class="page-link" href="#" aria-label="Previous">
<span aria-hidden="true">&laquo;</span>
<span class="sr-only">Previous</span>
</a>
</li>
<li v-for="n in Math.floor(total / limit)" class="page-item" :class="{'active': page === n}">
<li v-for="n in maxPages" class="page-item" :class="{'active': page === n}">
<a @click.prevent="gotoPage(n)" class="page-link" href="#">{{n}}</a>
</li>
<li class="page-item" :class="{'disabled': page===Math.floor(total / limit)}">
Expand Down Expand Up @@ -53,6 +53,19 @@ export default {
page: 1
}
},
computed: {
pages() {
return Math.floor(this.total / this.limit)
},
maxPages() {
const p = Math.floor(this.total / this.limit)
if (p > 16) {
return 16
} else {
return p
}
}
},
async mounted () {
await this.gotoPage(1)
},
Expand Down

0 comments on commit edb3691

Please sign in to comment.