summaryrefslogtreecommitdiff
path: root/src/components/_sila
diff options
context:
space:
mode:
authorVitalii Lysak <v.lysak@dunice.net>2022-08-02 09:45:39 +0300
committerVitalii Lysak <v.lysak@dunice.net>2022-08-02 09:45:39 +0300
commit2115ab9778fcabcec6293161fc8f6254219bfb03 (patch)
tree35da3f90cd57f97c597f258e1a15556a36de54c5 /src/components/_sila
parent20f718fc04f3ad8b8be0236f23717a63c5e8757c (diff)
downloadwebui-vue-2115ab9778fcabcec6293161fc8f6254219bfb03.tar.xz
add reset zoom, switch period
Diffstat (limited to 'src/components/_sila')
-rw-r--r--src/components/_sila/Global/TableDatePicker.vue8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/components/_sila/Global/TableDatePicker.vue b/src/components/_sila/Global/TableDatePicker.vue
index 0eef0f8c..397c507f 100644
--- a/src/components/_sila/Global/TableDatePicker.vue
+++ b/src/components/_sila/Global/TableDatePicker.vue
@@ -20,9 +20,11 @@ export default {
type: String,
default: 'hour',
},
- switchTimeScale: {
- type: Function,
- required: true,
+ },
+
+ methods: {
+ switchTimeScale(period) {
+ this.$emit('changePeriod', period);
},
},
};