Frontend: Disable experimental "pull to refresh" because of bugs

This commit is contained in:
Michael Mayer 2019-06-18 02:23:06 +02:00
parent 55ec4e5053
commit 94d670a277
2 changed files with 15 additions and 17 deletions

View file

@ -9,7 +9,7 @@ import PPhotoViewer from "./p-photo-viewer.vue";
import PPhotoSearch from "./p-photo-search.vue"; import PPhotoSearch from "./p-photo-search.vue";
import PPhotoClipboard from "./p-photo-clipboard.vue"; import PPhotoClipboard from "./p-photo-clipboard.vue";
import PScrollTop from "./p-scroll-top.vue"; import PScrollTop from "./p-scroll-top.vue";
import PPullRefresh from "./p-pull-refresh.vue"; // import PPullRefresh from "./p-pull-refresh.vue";
const components = {}; const components = {};
@ -25,7 +25,7 @@ components.install = (Vue) => {
Vue.component("p-photo-search", PPhotoSearch); Vue.component("p-photo-search", PPhotoSearch);
Vue.component("p-photo-clipboard", PPhotoClipboard); Vue.component("p-photo-clipboard", PPhotoClipboard);
Vue.component("p-scroll-top", PScrollTop); Vue.component("p-scroll-top", PScrollTop);
Vue.component("p-pull-refresh", PPullRefresh); // Vue.component("p-pull-refresh", PPullRefresh);
}; };
export default components; export default components;

View file

@ -2,24 +2,22 @@
<div class="p-page p-page-photos" v-infinite-scroll="loadMore" :infinite-scroll-disabled="scrollDisabled" <div class="p-page p-page-photos" v-infinite-scroll="loadMore" :infinite-scroll-disabled="scrollDisabled"
:infinite-scroll-distance="10" :infinite-scroll-listen-for-event="'scrollRefresh'"> :infinite-scroll-distance="10" :infinite-scroll-listen-for-event="'scrollRefresh'">
<p-pull-refresh :on-refresh="refresh"> <p-photo-search :settings="settings" :filter="filter" :filter-change="updateQuery"
<p-photo-search :settings="settings" :filter="filter" :filter-change="updateQuery" :refresh="refresh"></p-photo-search>
:refresh="refresh"></p-photo-search>
<v-container fluid class="pa-2"> <v-container fluid class="pa-2">
<p-scroll-top></p-scroll-top> <p-scroll-top></p-scroll-top>
<p-photo-clipboard :refresh="refresh" :selection="selection"></p-photo-clipboard> <p-photo-clipboard :refresh="refresh" :selection="selection"></p-photo-clipboard>
<p-photo-mosaic v-if="settings.view === 'mosaic'" :photos="results" :selection="selection" <p-photo-mosaic v-if="settings.view === 'mosaic'" :photos="results" :selection="selection"
:open-photo="openPhoto"></p-photo-mosaic> :open-photo="openPhoto"></p-photo-mosaic>
<p-photo-list v-else-if="settings.view === 'list'" :photos="results" :selection="selection" <p-photo-list v-else-if="settings.view === 'list'" :photos="results" :selection="selection"
:open-photo="openPhoto" :open-location="openLocation"></p-photo-list> :open-photo="openPhoto" :open-location="openLocation"></p-photo-list>
<p-photo-details v-else-if="settings.view === 'details'" :photos="results" :selection="selection" <p-photo-details v-else-if="settings.view === 'details'" :photos="results" :selection="selection"
:open-photo="openPhoto" :open-location="openLocation"></p-photo-details> :open-photo="openPhoto" :open-location="openLocation"></p-photo-details>
<p-photo-tiles v-else :photos="results" :selection="selection" :open-photo="openPhoto"></p-photo-tiles> <p-photo-tiles v-else :photos="results" :selection="selection" :open-photo="openPhoto"></p-photo-tiles>
</v-container> </v-container>
</p-pull-refresh>
</div> </div>
</template> </template>