mirror of
https://github.com/alerta/alerta-webui.git
synced 2025-03-18 06:12:51 +00:00
Merge pull request #142 from alerta/fix-refresh
Do not refresh twice on button click
This commit is contained in:
commit
f08e5292e0
4 changed files with 5 additions and 4 deletions
src
|
@ -527,6 +527,7 @@ export default {
|
|||
val || this.close()
|
||||
},
|
||||
refresh(val) {
|
||||
if (!val) return
|
||||
this.getBlackouts()
|
||||
this.getCustomers()
|
||||
this.getEnvironments()
|
||||
|
|
|
@ -351,7 +351,7 @@ export default {
|
|||
val || this.close()
|
||||
},
|
||||
refresh(val) {
|
||||
this.getGroups()
|
||||
val || this.getGroups()
|
||||
}
|
||||
},
|
||||
created() {
|
||||
|
|
|
@ -501,7 +501,7 @@ export default {
|
|||
val || this.close()
|
||||
},
|
||||
refresh(val) {
|
||||
this.getUsers()
|
||||
val || this.getUsers()
|
||||
}
|
||||
},
|
||||
created() {
|
||||
|
|
|
@ -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]) {
|
||||
|
|
Loading…
Reference in a new issue