From bafce8cad45e85a16cdbd4eac5b00e52ae55ca5a Mon Sep 17 00:00:00 2001 From: sharpshark28 Date: Sat, 27 May 2017 11:33:10 -0500 Subject: [PATCH] [IMPROVEMENT] Removed pagination, displays all spells now at once --- src/App.vue | 8 +++--- src/components/Index.vue | 4 +-- src/components/Myspells.vue | 4 +-- src/components/Spell.vue | 16 +++++------ src/components/Spellitem.vue | 31 +++++++++++++--------- src/components/Spelllist.vue | 51 ++++++++++-------------------------- src/store.js | 12 ++++++++- 7 files changed, 60 insertions(+), 66 deletions(-) diff --git a/src/App.vue b/src/App.vue index 572b45c..294c10c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -37,6 +37,10 @@ function fetchSuccess (data) { loaded: true } }) + dispatch({ + type: 'SPELLS_CREATE_INDEX', + data + }) } function fetchFailure (reason) { @@ -63,9 +67,7 @@ export default { }, mounted () { if (LocalStorage.has('chosen')) { - dispatch({ - type: 'LOAD_LOCAL_CHOSEN' - }) + dispatch({type: 'LOAD_LOCAL_CHOSEN'}) } if (!this.state.spells.loaded) { diff --git a/src/components/Index.vue b/src/components/Index.vue index afb7395..1c8e6ee 100644 --- a/src/components/Index.vue +++ b/src/components/Index.vue @@ -1,8 +1,8 @@