download set with c= to match every host of a cluster
This commit is contained in:
+5
-5
@@ -4,16 +4,16 @@ const Cluster = {
|
||||
template: `
|
||||
<ClusterAccess :cluster="cluster" :token="token" :state="state" />
|
||||
|
||||
<h3>Tokens</h3>
|
||||
<ClusterCAs :cluster="cluster" :token="token" />
|
||||
|
||||
<h3>Secrets</h3>
|
||||
<h4>Tokens</h4>
|
||||
<section class="links">
|
||||
<GetCopy v-for="n in cluster.Tokens" :token="token" :name="n" :href="'/clusters/'+cluster.Name+'/tokens/'+n" />
|
||||
</section>
|
||||
|
||||
<h3>Passwords</h3>
|
||||
<h4>Passwords</h4>
|
||||
<section class="links">
|
||||
<GetCopy v-for="n in cluster.Passwords" :token="token" :name="n" :href="'/clusters/'+cluster.Name+'/passwords/'+n" />
|
||||
</section>
|
||||
|
||||
<ClusterCAs :cluster="cluster" :token="token" />
|
||||
`
|
||||
}
|
||||
|
||||
@@ -79,12 +79,11 @@ const ClusterAccess = {
|
||||
generateDownloadSet() {
|
||||
event.preventDefault()
|
||||
|
||||
const hosts = this.hostCount ? (this.state.Hosts||[]).filter(h => h.Cluster == this.cluster.Name) : []
|
||||
const items = hosts.map(h => ({
|
||||
const items = [{
|
||||
Kind: "host",
|
||||
Name: h.Name,
|
||||
Name: "c=" + this.cluster.Name,
|
||||
Assets: this.selectedAssetList,
|
||||
}))
|
||||
}]
|
||||
|
||||
fetch('/sign-download-set', {
|
||||
method: 'POST',
|
||||
|
||||
Reference in New Issue
Block a user