github.com/tilt-dev/tilt@v0.33.15-0.20240515162809-0a22ed45d8a0/web/src/Hold.tsx (about) 1 export class Hold { 2 reason: string 3 count: number = 0 4 resources: string[] = [] 5 images: string[] = [] 6 clusters: string[] = [] 7 8 constructor(waiting: Proto.v1alpha1UIResourceStateWaiting) { 9 this.reason = waiting.reason ?? "" 10 for (const ref of waiting.on ?? []) { 11 this.count++ 12 if (ref.kind === "UIResource" && ref.name) { 13 this.resources.push(ref.name) 14 } 15 if (ref.kind === "ImageMap" && ref.name) { 16 this.images.push(ref.name) 17 } 18 if (ref.kind === "Cluster" && ref.name) { 19 this.clusters.push(ref.name) 20 } 21 } 22 } 23 }