From 131e790e26045282000451f96ef0b1e493a39f39 Mon Sep 17 00:00:00 2001
From: Chad Derya <scd@onlinefuels.com>
Date: Wed, 11 Sep 2019 19:17:39 +0100
Subject: [PATCH] Added user name and user status fields to user view

---
 src/views/users/list.vue | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/src/views/users/list.vue b/src/views/users/list.vue
index fe7277da..d531bb82 100644
--- a/src/views/users/list.vue
+++ b/src/views/users/list.vue
@@ -18,6 +18,12 @@
         </template>
       </el-table-column>
 
+      <el-table-column align="center" label="Username" width="200">
+        <template slot-scope="scope">
+          <span>{{ scope.row.username }}</span>
+        </template>
+      </el-table-column>
+
       <el-table-column align="center" label="Account" width="200">
         <template slot-scope="scope">
           <span>{{ scope.row.account.name }}</span>
@@ -36,6 +42,14 @@
         </template>
       </el-table-column>
 
+      <el-table-column align="center" label="Status" width="200">
+        <template slot-scope="scope">
+          <span v-if="scope.row.status_id===100">Active</span>
+          <span v-if="scope.row.status_id===200">Inactive</span>
+          <span v-if="scope.row.status_id===300">Locked</span>
+        </template>
+      </el-table-column>
+
       <el-table-column align="center" label="Actions" width="120">
         <template slot-scope="scope">
           <router-link :to="'/users/edit/' + scope.row.id">