Only group delete visible items (#4798)

This commit is contained in:
Sebastian Malton authored and GitHub committed 2022-02-07 10:40:20 -05:00
1 parent 06ec1b39a4
commit 4abe0d6c20
7 files changed
+57 -45

No files matched your search

+4
View File
@@ -369,6 +369,10 @@ export abstract class KubeObjectStore<T extends KubeObject> extends ItemStore<T>
return Promise.all(this.selectedItems.map(this.remove));
}
async removeItems(items: T[]) {
await Promise.all(items.map(this.remove));
}
// collect items from watch-api events to avoid UI blowing up with huge streams of data
protected eventsBuffer = observable.array<IKubeWatchEvent<KubeJsonApiData>>([], { deep: false });