Adding request now totally works
Also: - added progress bar, integrated with journal loading - updated Vue app dependencies
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user