Skip to content

Commit

Permalink
wip: Provide a new TimeLine component #909
Browse files Browse the repository at this point in the history
  • Loading branch information
cnouguier committed Aug 21, 2024
1 parent d2ba8fd commit 0b7c546
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
<KAction
v-if="isVisible"
id="back-to-top"
tooltip="ScrollToTop.TOOLTIP"
tooltip="KScrollToTop.TOOLTIP"
icon="vertical_align_top"
color="accent"
:flat="false"
size="size"
:size="size"
:handler="scrollToTop"
/>
</template>
Expand All @@ -27,7 +27,7 @@ const props = defineProps({
},
size: {
type: String,
default: 'sm'
default: 'md'
},
duration: {
type: Number,
Expand Down
8 changes: 4 additions & 4 deletions core/client/components/collection/KTimeLine.vue
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,15 @@
<div v-if="scrollTargetRef" class="q-px-sm row items-center">
<div class="col-4"></div>
<div class="col-4 row justify-center">
<ScrollDown
<KScrollDown
v-if="scrollDown"
:ref="scrollDownRefCreated"
target="scroll-target"
:loading="loadDoneFunction ? true : false"
/>
</div>
<div class="col-4 row justify-end">
<ScrollToTop
<KScrollToTop
v-if="scrollToTop"
:ref="scrollToTopRefCreated"
target="scroll-target"
Expand Down Expand Up @@ -151,8 +151,8 @@ import { useCollection } from '../../composables'
import { Events } from '../../events.js'
import { Time } from '../../time.js'
import { loadComponent } from '../../utils'
import ScrollToTop from './ScrollToTop.vue'
import ScrollDown from './ScrollDown.vue'
import KScrollToTop from './KScrollToTop.vue'
import KScrollDown from './KScrollDown.vue'
import KStamp from '../KStamp.vue'
import KPanel from '../KPanel.vue'
Expand Down
3 changes: 3 additions & 0 deletions core/client/i18n/core_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,9 @@
"KTimeLine": {
"EMPTY_LABEL": "@:NO_ITEM"
},
"KScrollToTop": {
"TOOLTIP": "Scroll to top"
},
"KHistory": {
"EMPTY_HISTORY": "@:NO_ITEM"
},
Expand Down
3 changes: 3 additions & 0 deletions core/client/i18n/core_fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,9 @@
"KTimeLine": {
"EMPTY_LABEL": "@:NO_ITEM"
},
"KScrollToTop": {
"TOOLTIP": "Haut de page"
},
"KHistory": {
"EMPTY_HISTORY": "@:NO_ITEM"
},
Expand Down

0 comments on commit 0b7c546

Please sign in to comment.