Adding request now totally works

Also:
- added progress bar, integrated with journal loading
- updated Vue app dependencies
This commit is contained in:
Daniel J. Summers
2017-09-21 21:31:59 -05:00
parent f5a14fb66e
commit a6b5149b34
8 changed files with 135 additions and 64 deletions
+2 -2
View File
@@ -21,8 +21,8 @@ import actions from '@/store/action-types'
export default {
name: 'dashboard',
data () {
this.$store.dispatch(actions.LOAD_JOURNAL)
async data () {
this.$store.dispatch(actions.LOAD_JOURNAL, this.$Progress)
return {}
},
components: {
@@ -1,7 +1,9 @@
<template lang="pug">
div
p Id {{ request.requestId }} as of {{ request.asOf }}
p {{ request.text }}
el-row.journal-request(:id="request.requestId")
el-col(:span='4') Action buttons
el-col(:span='20')
p Id {{ request.requestId }} as of {{ request.asOf }}
p {{ request.text }}
</template>
<script>
@@ -10,6 +12,17 @@ export default {
props: ['request'],
data: function () {
return {}
},
methods: {
markPrayed: function (requestId) {
// TODO: write function
}
}
}
</script>
<style>
.journal-request {
border-bottom: dotted 1px lightgray;
}
</style>