Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117878691
List.vue
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
2 KB
Referenced Files
None
Subscribers
None
List.vue
View Options
<template>
<div class="container">
<div class="card" id="user-list">
<div class="card-body">
<div class="card-title">
{{ $t('user.list-title') }}
<router-link class="btn btn-success float-end create-user" :to="{ path: 'user/new' }" tag="button">
<svg-icon icon="user"></svg-icon> {{ $t('user.create') }}
</router-link>
</div>
<div class="card-text">
<table class="table table-sm table-hover">
<thead>
<tr>
<th scope="col">{{ $t('form.primary-email') }}</th>
</tr>
</thead>
<tbody>
<tr v-for="user in users" :id="'user' + user.id" :key="user.id" @click="$root.clickRecord">
<td>
<svg-icon icon="user" :class="$root.userStatusClass(user)" :title="$root.userStatusText(user)"></svg-icon>
<router-link :to="{ path: 'user/' + user.id }">{{ user.email }}</router-link>
</td>
</tr>
</tbody>
<tfoot class="table-fake-body">
<tr>
<td>{{ $t('user.users-none') }}</td>
</tr>
</tfoot>
</table>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
users: [],
current_user: null
}
},
created() {
this.$root.startLoading()
axios.get('/api/v4/users')
.then(response => {
this.$root.stopLoading()
this.users = response.data
})
.catch(this.$root.errorHandler)
}
}
</script>
File Metadata
Details
Attached
Mime Type
text/html
Expires
Sun, Apr 5, 10:27 PM (2 w, 6 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18831426
Default Alt Text
List.vue (2 KB)
Attached To
Mode
rK kolab
Attached
Detach File
Event Timeline