Changeset View
Changeset View
Standalone View
Standalone View
src/resources/vue/Admin/User.vue
Show First 20 Lines • Show All 238 Lines • ▼ Show 20 Lines | <div class="container"> | ||||
<tr> | <tr> | ||||
<th scope="col">Primary Email</th> | <th scope="col">Primary Email</th> | ||||
</tr> | </tr> | ||||
</thead> | </thead> | ||||
<tbody> | <tbody> | ||||
<tr v-for="item in users" :id="'user' + item.id" :key="item.id" @click="$root.clickRecord"> | <tr v-for="item in users" :id="'user' + item.id" :key="item.id" @click="$root.clickRecord"> | ||||
<td> | <td> | ||||
<svg-icon icon="user" :class="$root.userStatusClass(item)" :title="$root.userStatusText(item)"></svg-icon> | <svg-icon icon="user" :class="$root.userStatusClass(item)" :title="$root.userStatusText(item)"></svg-icon> | ||||
<router-link :to="{ path: '/user/' + item.id }">{{ item.email }}</router-link> | <router-link v-if="item.id != user.id" :to="{ path: '/user/' + item.id }">{{ item.email }}</router-link> | ||||
<span v-else>{{ item.email }}</span> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</tbody> | </tbody> | ||||
<tfoot class="table-fake-body"> | <tfoot class="table-fake-body"> | ||||
<tr> | <tr> | ||||
<td>There are no users in this account.</td> | <td>There are no users in this account.</td> | ||||
</tr> | </tr> | ||||
</tfoot> | </tfoot> | ||||
▲ Show 20 Lines • Show All 218 Lines • ▼ Show 20 Lines | export default { | ||||
} | } | ||||
}) | }) | ||||
}) | }) | ||||
// Fetch users | // Fetch users | ||||
// TODO: Multiple wallets | // TODO: Multiple wallets | ||||
axios.get('/api/v4/users?owner=' + user_id) | axios.get('/api/v4/users?owner=' + user_id) | ||||
.then(response => { | .then(response => { | ||||
this.users = response.data.list.filter(user => { | this.users = response.data.list; | ||||
return user.id != user_id; | |||||
}) | |||||
}) | }) | ||||
// Fetch domains | // Fetch domains | ||||
axios.get('/api/v4/domains?owner=' + user_id) | axios.get('/api/v4/domains?owner=' + user_id) | ||||
.then(response => { | .then(response => { | ||||
this.domains = response.data.list | this.domains = response.data.list | ||||
}) | }) | ||||
}) | }) | ||||
▲ Show 20 Lines • Show All 153 Lines • Show Last 20 Lines |