Display policy data in account/domain tables

This commit is contained in:
Eliot Berriot 2019-01-09 17:50:15 +01:00
parent 378572d8bb
commit 24fdfd345c
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
3 changed files with 13 additions and 1 deletions

View file

@ -34,6 +34,7 @@
@action-launched="fetchData"
:objects-data="result"
:actions="actions"
action-url="manage/accounts/action/"
:filters="actionFilters">
<template slot="header-cells">
<th><translate>Name</translate></th>
@ -41,6 +42,7 @@
<th><translate>Uploads</translate></th>
<th><translate>First seen</translate></th>
<th><translate>Last seen</translate></th>
<th><translate>Under moderation rule</translate></th>
</template>
<template slot="row-cells" slot-scope="scope">
<td>
@ -67,6 +69,9 @@
<td>
<human-date v-if="scope.obj.last_fetch_date" :date="scope.obj.last_fetch_date"></human-date>
</td>
<td>
<span v-if="scope.obj.instance_policy"><i class="shield icon"></i> <translate>Yes</translate></span>
</td>
</template>
</action-table>
</div>
@ -78,7 +83,6 @@
:current="page"
:paginate-by="paginateBy"
:total="result.count"
action-url="manage/accounts/action/"
></pagination>
<span v-if="result && result.results.length > 0">

View file

@ -40,6 +40,7 @@
<th><translate>Users</translate></th>
<th><translate>Received messages</translate></th>
<th><translate>First seen</translate></th>
<th><translate>Under moderation rule</translate></th>
</template>
<template slot="row-cells" slot-scope="scope">
<td>
@ -54,6 +55,9 @@
<td>
<human-date :date="scope.obj.creation_date"></human-date>
</td>
<td>
<span v-if="scope.obj.instance_policy"><i class="shield icon"></i> <translate>Yes</translate></span>
</td>
</template>
</action-table>
</div>