0
0
Fork 0
mirror of https://github.com/alerta/alerta-webui.git synced 2025-03-18 06:12:51 +00:00

Merge pull request from alerta/fix-refresh

Do not refresh twice on button click
This commit is contained in:
Nick Satterly 2019-04-12 14:58:49 +02:00 committed by GitHub
commit f08e5292e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 4 deletions

View file

@ -527,6 +527,7 @@ export default {
val || this.close()
},
refresh(val) {
if (!val) return
this.getBlackouts()
this.getCustomers()
this.getEnvironments()

View file

@ -351,7 +351,7 @@ export default {
val || this.close()
},
refresh(val) {
this.getGroups()
val || this.getGroups()
}
},
created() {

View file

@ -501,7 +501,7 @@ export default {
val || this.close()
},
refresh(val) {
this.getUsers()
val || this.getUsers()
}
},
created() {

View file

@ -206,10 +206,10 @@ const actions = {
return AlertsApi.getTop10Count({}).then(({ top10 }) => commit('SET_TOP_OFFENDERS', top10))
},
getTopFlapping({ commit }) {
return AlertsApi.getTop10Count({}).then(({ top10 }) => commit('SET_TOP_FLAPPING', top10))
return AlertsApi.getTop10Flapping({}).then(({ top10 }) => commit('SET_TOP_FLAPPING', top10))
},
getTopStanding({ commit }) {
return AlertsApi.getTop10Count({}).then(({ top10 }) => commit('SET_TOP_STANDING', top10))
return AlertsApi.getTop10Standing({}).then(({ top10 }) => commit('SET_TOP_STANDING', top10))
},
toggle({ commit }, [s, v]) {