fix: graphql error notifications

This commit is contained in:
Nicolas Giard
2019-01-12 22:33:30 -05:00
parent 7e62c01ed1
commit 959f2ebde1
9 changed files with 42 additions and 58 deletions

View File

@@ -146,11 +146,7 @@ export default {
throw new Error(resp.message)
}
} catch (err) {
this.$store.commit('showNotification', {
message: `Error: ${err.message}`,
style: 'error',
icon: 'warning'
})
this.$store.commit('pushGraphError', err)
}
this.$store.commit(`loadingStop`, 'admin-theme-save')
this.loading = false