This commit is contained in:
ziirish 2017-04-21 09:13:27 +02:00
parent 86a30ce75c
commit 200aa986c5
2 changed files with 1 additions and 8 deletions

View file

@ -300,12 +300,6 @@ var _sessions_table = $('#table-sessions').dataTable( {
return '<span data-toggle="tooltip" title="'+data+'">'+moment(data, moment.ISO_8601).fromNow()+'</span>';
}
},
{
data: null,
render: function( data, type, row ) {
return '<button class="btn btn-danger" data-toggle="revoke-session" data-id="'+data.uuid+'" data-current="'+data.current+'" data-misc="'+escape(JSON.stringify(data, null, 4))+'"><span class="glyphicon glyphicon-trash"></span></button>';
}
}
],
});
var first = true;
@ -517,7 +511,7 @@ function click(d) {
update_tree(d);
}
d3.json("{{ url_for('api.clients_all') }}")
d3.json("{{ url_for('api.clients_all') }}?_session=" + SESSION_TAG)
.header('X-From-UI', true)
.get(function(error, data) {
if (! error) {

View file

@ -19,7 +19,6 @@
<th>{{ _('API Login') }}</th>
<th>{{ _('Current session') }}</th>
<th>{{ _('Expire') }}</th>
<th>{{ _('Revoke') }}</th>
</tr>
</thead>
<tbody>