ui: remove cluster downloads (no use anymore)

This commit is contained in:
Mikaël Cluseau
2026-06-17 18:35:49 +02:00
parent 99592d6efb
commit d975836adf
5 changed files with 8 additions and 16 deletions
+1 -4
View File
@@ -1,5 +1,5 @@
const Cluster = {
components: { ClusterAccess, ClusterCAs, Downloads, GetCopy },
components: { ClusterAccess, ClusterCAs, GetCopy },
props: [ 'cluster', 'token', 'state' ],
template: `
<ClusterAccess :cluster="cluster" :token="token" :state="state" />
@@ -14,9 +14,6 @@ const Cluster = {
<GetCopy v-for="n in cluster.Passwords" :token="token" :name="n" :href="'/clusters/'+cluster.Name+'/passwords/'+n" />
</section>
<h3>Downloads</h3>
<Downloads :token="token" :state="state" kind="cluster" :name="cluster.Name" />
<ClusterCAs :cluster="cluster" :token="token" />
`
}
+2 -3
View File
@@ -5,8 +5,7 @@ const Downloads = {
},
computed: {
availableAssets() {
return {
cluster: ['addons'],
return ({
host: [
"kernel",
"initrd",
@@ -23,7 +22,7 @@ const Downloads = {
"config.json",
"ipxe",
],
}[this.kind]
}[this.kind] || [])
},
downloads() {
return Object.entries(this.state.Downloads)