code cleanup dziennika

This commit is contained in:
2023-09-29 03:03:59 +02:00
parent c5735a6953
commit d28d600833
13 changed files with 682 additions and 482 deletions
+42
View File
@@ -0,0 +1,42 @@
<template>
<button
class="btn btn--option btn--load-data"
v-if="!scrollNoMoreData && scrollDataLoaded && list.length >= 15"
@click="addHistoryData"
>
{{ $t('journal.load-data') }}
</button>
</template>
<script lang="ts">
import { PropType, defineComponent } from 'vue';
export default defineComponent({
props: {
scrollNoMoreData: {
type: Boolean,
required: true,
},
scrollDataLoaded: {
type: Boolean,
required: true,
},
list: {
type: Array as PropType<any[]>,
required: true,
},
},
emits: ['addHistoryData'],
methods: {
addHistoryData() {
this.$emit('addHistoryData');
},
},
});
</script>
<style scoped></style>