16 lines
581 B
JavaScript
16 lines
581 B
JavaScript
const ClusterCAs = {
|
|
components: { GetCopy },
|
|
props: [ 'cluster', 'token' ],
|
|
template: `
|
|
<table><tr><th>Name</th><th>Certificate</th><th>Signed certificates</th></tr>
|
|
<tr v-for="ca in cluster.CAs">
|
|
<td>{{ ca.Name }}</td>
|
|
<td><GetCopy :token="token" name="cert" :href="'/clusters/'+cluster.Name+'/CAs/'+ca.Name+'/certificate'" /></td>
|
|
<td><template v-for="signed in ca.Signed">
|
|
{{" "}}
|
|
<GetCopy :token="token" :name="signed" :href="'/clusters/'+cluster.Name+'/CAs/'+ca.Name+'/signed?name='+signed" />
|
|
</template></td>
|
|
</tr></table>
|
|
`
|
|
}
|