Sessions UI: visualization, month/year charts (#15902)
This commit is contained in:
parent
1bd521fc24
commit
cfa35f295b
38 changed files with 3271 additions and 715 deletions
41
assets/js/components/Sessions/DateNavigatorButton.vue
Normal file
41
assets/js/components/Sessions/DateNavigatorButton.vue
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
<template>
|
||||
<button class="btn btn-sm border-0" :disabled="disabled" @click="onClick">
|
||||
<component :is="icon" size="s" :class="iconClass"></component>
|
||||
</button>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import "@h2d2/shopicons/es/regular/angledoubleleftsmall";
|
||||
import "@h2d2/shopicons/es/regular/angledoublerightsmall";
|
||||
|
||||
export default {
|
||||
name: "DateNavigatorButton",
|
||||
props: {
|
||||
disabled: Boolean,
|
||||
prev: Boolean,
|
||||
next: Boolean,
|
||||
onClick: Function,
|
||||
},
|
||||
computed: {
|
||||
icon() {
|
||||
if (this.prev) {
|
||||
return "shopicon-regular-angledoubleleftsmall";
|
||||
} else if (this.next) {
|
||||
return "shopicon-regular-angledoublerightsmall";
|
||||
}
|
||||
return null;
|
||||
},
|
||||
iconClass() {
|
||||
return this.prev ? "me-1" : this.next ? "ms-1" : "";
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.btn,
|
||||
.btn:active,
|
||||
.btn:focus {
|
||||
color: inherit !important;
|
||||
}
|
||||
</style>
|
||||
Loading…
Add table
Add a link
Reference in a new issue