Skip to content

Commit

Permalink
feat(ContentListQueue): Added VuePullToReload
Browse files Browse the repository at this point in the history
No Vue pull to refresh was good enough for our project. We're will be working on the VuePullToReload
until it is ready.

re #18
  • Loading branch information
Venefilyn committed Apr 10, 2019
1 parent 89dc952 commit b34ac68
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 25 deletions.
7 changes: 7 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"snoowrap": "^1.15.2",
"uuid": "^3.3.2",
"vue": "^2.6.10",
"vue-pull-to-reload": "git+https://github.com/SpyTec/vue-pull-to-reload.git",
"vue-router": "^3.0.1",
"vuejs-storage": "^3.0.1",
"vuetify": "^1.5.7",
Expand Down
54 changes: 29 additions & 25 deletions src/views/partials/ContentListQueue.vue
Original file line number Diff line number Diff line change
@@ -1,44 +1,48 @@
<template>
<v-container fluid>
<v-layout
row
wrap
>
<v-flex
v-for="list in listing"
:key="list.id"
xs12
my3
<pull-to-reload :top-load-method="() => {}">
<v-layout
row
wrap
>
<v-container
fluid
pa-0
pb-2
ma-0
<v-flex
v-for="list in listing"
:key="list.id"
xs12
my3
>
<ms-submission
v-if="list.constructor._name === 'Submission'"
:submission="list"
/>
<ms-comment
v-else
:comment="list"
/>
</v-container>
</v-flex>
</v-layout>
<v-container
fluid
pa-0
pb-2
ma-0
>
<ms-submission
v-if="list.constructor._name === 'Submission'"
:submission="list"
/>
<ms-comment
v-else
:comment="list"
/>
</v-container>
</v-flex>
</v-layout>
</pull-to-reload>
</v-container>
</template>

<script>
import MsSubmission from '../../components/Submission';
import MsComment from '../../components/Comment';
import PullToReload from 'vue-pull-to-reload';
export default {
name: 'MsContentListQueue',
components: {
MsSubmission,
MsComment,
PullToReload,
},
props: {
listing: {
Expand Down

0 comments on commit b34ac68

Please sign in to comment.