Prettier success messages

This commit is contained in:
Henrique Dias committed 2017-07-08 14:43:08 +01:00
1 parent 338e73a8b2
commit bb116fe5b0
10 files changed
+116 -52

No files matched your search

+6 -4
View File
@@ -66,10 +66,6 @@ export default {
watch: {
'$route': 'fetchData',
'reload': function () {
this.$store.commit('setReload', false)
this.$store.commit('resetSelected')
this.$store.commit('multiple', false)
this.$store.commit('closeHovers')
this.fetchData()
}
},
@@ -82,6 +78,12 @@ export default {
methods: {
...mapMutations([ 'setLoading' ]),
fetchData () {
// Reset view information.
this.$store.commit('setReload', false)
this.$store.commit('resetSelected')
this.$store.commit('multiple', false)
this.$store.commit('closeHovers')
// Set loading to true and reset the error.
this.setLoading(true)
this.error = null