Update TableDataFormatter filename

Changed TableDataFormatter to TableDataFormatterMixin to be
consistent with other Mixin files.

Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com>
Change-Id: Iae6528deda3099cf730150164739ee2fb64bbfe3
diff --git a/src/components/Mixins/TableDataFormatterMixin.js b/src/components/Mixins/TableDataFormatterMixin.js
new file mode 100644
index 0000000..77db7de
--- /dev/null
+++ b/src/components/Mixins/TableDataFormatterMixin.js
@@ -0,0 +1,28 @@
+const TableDataFormatterMixin = {
+  methods: {
+    tableFormatter(value) {
+      if (value === undefined || value === null || value === '') {
+        return '--';
+      } else {
+        return value;
+      }
+    },
+    statusIcon(status) {
+      switch (status) {
+        case 'OK':
+          return 'success';
+        case 'Warning':
+          return 'warning';
+        case 'Critical':
+          return 'danger';
+        default:
+          return '';
+      }
+    },
+    tableFormatterArray(value) {
+      return value.join(', ');
+    }
+  }
+};
+
+export default TableDataFormatterMixin;