From b1a7191eb287fe92c82d3346f2a9587e41c62d2b Mon Sep 17 00:00:00 2001
From: Yoshie Muranaka <yoshiemuranaka@gmail.com>
Date: Wed, 29 Apr 2020 10:52:39 -0700
Subject: Add export functionality to Sensors page

- Create TableToolbarExport component to be used as a slot
  in TableToolbar
- Allows selected table items to be exported

Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com>
Change-Id: I929347e046af8a5d5188e4c4fd9fc874e067cce5
---
 src/components/Global/TableToolbar.vue | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'src/components/Global/TableToolbar.vue')

diff --git a/src/components/Global/TableToolbar.vue b/src/components/Global/TableToolbar.vue
index 041a9c18..331f0076 100644
--- a/src/components/Global/TableToolbar.vue
+++ b/src/components/Global/TableToolbar.vue
@@ -15,6 +15,7 @@
           >
             {{ action.label }}
           </b-button>
+          <slot name="export"></slot>
           <b-button
             variant="primary"
             class="d-block"
@@ -38,7 +39,7 @@ export default {
     },
     actions: {
       type: Array,
-      required: true,
+      default: () => [],
       validator: prop => {
         return prop.every(action => {
           return (
-- 
cgit v1.2.3

