summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2021-03-19 20:26:48 +0100
committerSanto Cariotti <santo@dcariotti.me>2021-03-19 20:26:48 +0100
commita70a62d2f7188a36a08314ac2151dec7152fffa7 (patch)
tree174ce0b09092e4d77df3bf9698b8c8d4e06c89c6
parentbfb31b38540438432b60e1ccd8445c29748c67ee (diff)
chore: remove loading on get emails
-rw-r--r--src/store.js2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/store.js b/src/store.js
index dab3529..2fd04eb 100644
--- a/src/store.js
+++ b/src/store.js
@@ -44,7 +44,6 @@ export default new Vuex.Store({
},
// Get all emails and map them like an hash
async get_emails({commit}) {
- commit('loading_state', true)
await fetch(`${this.state.api}/email/`)
.then(async response => {
const emails_list = await response.json();
@@ -56,7 +55,6 @@ export default new Vuex.Store({
commit('load_emails', emails_obj);
})
- commit('loading_state', false)
},
},
modules: {