Pimp Oauth2 table
Fixes #12302 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
5fb1d8d3be
commit
5659e69cd8
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -28,17 +28,8 @@
|
||||||
<table v-if="clients.length > 0" class="grid">
|
<table v-if="clients.length > 0" class="grid">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th id="headerName" scope="col">
|
<th id="headerContent">
|
||||||
{{ t('oauth2', 'Name') }}
|
|
||||||
</th>
|
|
||||||
<th id="headerRedirectUri" scope="col">
|
|
||||||
{{ t('oauth2', 'Redirection URI') }}
|
|
||||||
</th>
|
|
||||||
<th id="headerClientIdentifier" scope="col">
|
|
||||||
{{ t('oauth2', 'Client Identifier') }}
|
|
||||||
</th>
|
|
||||||
<th id="headerSecret" scope="col">
|
|
||||||
{{ t('oauth2', 'Secret') }}
|
|
||||||
</th>
|
</th>
|
||||||
<th id="headerRemove">
|
<th id="headerRemove">
|
||||||
|
|
||||||
|
@ -127,3 +118,8 @@ export default {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
<style scoped>
|
||||||
|
table {
|
||||||
|
max-width: 800px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
|
@ -21,10 +21,26 @@
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ name }}</td>
|
<td>
|
||||||
<td>{{ redirectUri }}</td>
|
<table class="inline">
|
||||||
<td><code>{{ clientId }}</code></td>
|
<tr>
|
||||||
<td><code>{{ renderedSecret }}</code><a class="icon-toggle has-tooltip" :title="t('oauth2', 'Show client secret')" @click="toggleSecret" /></td>
|
<td>{{ t('oauth2', 'Name') }}</td>
|
||||||
|
<td>{{ name }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>{{ t('oauth2', 'Redirection URI') }}</td>
|
||||||
|
<td>{{ redirectUri }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>{{ t('oauth2', 'Client Identifier') }}</td>
|
||||||
|
<td><code>{{ clientId }}</code></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>{{ t('oauth2', 'Secret') }}</td>
|
||||||
|
<td><code>{{ renderedSecret }}</code><a class="icon-toggle has-tooltip" :title="t('oauth2', 'Show client secret')" @click="toggleSecret" /></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
<td class="action-column">
|
<td class="action-column">
|
||||||
<span><a class="icon-delete has-tooltip" :title="t('oauth2', 'Delete')" @click="$emit('delete', id)" /></span>
|
<span><a class="icon-delete has-tooltip" :title="t('oauth2', 'Delete')" @click="$emit('delete', id)" /></span>
|
||||||
</td>
|
</td>
|
||||||
|
@ -79,6 +95,9 @@ export default {
|
||||||
td code {
|
td code {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
padding: 3px;
|
}
|
||||||
|
table.inline td {
|
||||||
|
border: none;
|
||||||
|
padding: 5px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue