Dashboard fix

pull/443/head v0.90.15
hunterlong 2020-03-22 04:00:37 -07:00
parent f953eea1dd
commit 11538c38e3
7 changed files with 13 additions and 12 deletions

View File

@ -17,7 +17,7 @@ Steps to reproduce the behavior:
### Expected behavior ### Expected behavior
A clear and concise description of what you expected to happen. A clear and concise description of what you expected to happen.
### Screenshots ### Screenshots or Logs
If applicable, add screenshots to help explain your problem. If applicable, add screenshots to help explain your problem. If you can, provide any logs from the latest `logs/statping.log` file.
[![Gitter](https://img.shields.io/gitter/room/nwjs/nw.js.svg)](https://gitter.im/statup-app/general) [![GitHub release](https://img.shields.io/github/release/hunterlong/statup.svg)](https://github.com/statping/statping/releases/latest) [![Build Status](https://travis-ci.com/hunterlong/statup.svg?branch=master)](https://travis-ci.com/hunterlong/statup) [![Slack](https://slack.statping.com/badge.svg)](https://slack.statping.com/) [![GitHub release](https://img.shields.io/github/release/hunterlong/statup.svg)](https://github.com/statping/statping/releases/latest) [![Build Status](https://travis-ci.com/hunterlong/statup.svg?branch=master)](https://travis-ci.com/hunterlong/statup)

View File

@ -1,3 +1,7 @@
# 0.90.15
- Fixed /dashboard authentication state to show admin tabs if your an admin. [Issue #438](https://github.com/statping/statping/issues/438)
- Fixed Cache JS error on Dashboard
# 0.90.14 # 0.90.14
- Updated SCSS compiling, and confirmed it works. - Updated SCSS compiling, and confirmed it works.
- Added `$container-color` SCSS variable. - Added `$container-color` SCSS variable.

View File

@ -19,8 +19,8 @@
// Build All Binary Arch's // Build All Binary Arch's
// //
// To build Statping for Mac, Windows, Linux, and ARM devices, you can run xgo to build for all. xgo is an awesome // To build Statping for Mac, Windows, Linux, and ARM devices, you can run xgo to build for all. xgo is an awesome
// golang package that requires Docker. https://github.com/karalabe/xgo // golang package that requires Docker. https://github.com/crazy-max/xgo
// docker pull karalabe/xgo-latest // docker pull crazy-max/xgo
// build-all // build-all
// //
// More info on: https://github.com/statping/statping // More info on: https://github.com/statping/statping

View File

@ -13,7 +13,7 @@
<tr v-for="(cache, index) in cache"> <tr v-for="(cache, index) in cache">
<td>{{cache.url}}</td> <td>{{cache.url}}</td>
<td>{{cache.size}}</td> <td>{{cache.size}}</td>
<td>{{expireTime(cache.expiration)}}</td> <td>{{ago(cache.expiration)}}</td>
</tr> </tr>
</tbody> </tbody>
@ -36,9 +36,6 @@ export default {
this.cache = await Api.cache() this.cache = await Api.cache()
}, },
methods: { methods: {
expireTime(ex) {
return this.toLocal(ex)
},
async clearCache() { async clearCache() {
await Api.clearCache() await Api.clearCache()
this.cache = [] this.cache = []

View File

@ -63,7 +63,6 @@
this.auth = Api.saveToken(this.username, auth.token, auth.admin) this.auth = Api.saveToken(this.username, auth.token, auth.admin)
this.$store.dispatch('loadAdmin') this.$store.dispatch('loadAdmin')
this.$store.commit('setAdmin', auth.admin) this.$store.commit('setAdmin', auth.admin)
window.console.log(auth)
this.$router.push('/dashboard') this.$router.push('/dashboard')
} }
this.loading = false this.loading = false

View File

@ -20,7 +20,8 @@
} }
}, },
async mounted() { async mounted() {
const core = await Api.core()
this.$store.commit('setAdmin', core.admin)
} }
} }
</script> </script>

View File

@ -1 +1 @@
0.90.14 0.90.15