From 36e872436b49a494b829985dd26b0b1a5a4cce28 Mon Sep 17 00:00:00 2001 From: njkim Date: Thu, 26 Oct 2023 19:31:21 -0700 Subject: [PATCH] Update ready criteria, #10186 --- .../components/etl_modules/bulk-data-deletion.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/arches/app/media/js/views/components/etl_modules/bulk-data-deletion.js b/arches/app/media/js/views/components/etl_modules/bulk-data-deletion.js index 3f5e9051c8b..f8f8f9954f1 100644 --- a/arches/app/media/js/views/components/etl_modules/bulk-data-deletion.js +++ b/arches/app/media/js/views/components/etl_modules/bulk-data-deletion.js @@ -33,24 +33,25 @@ define([ this.loadId = params.loadId || uuid.generate(); this.resourceids = ko.observable(); this.searchUrl = ko.observable(); - this.deleteTiles = ko.observable(false); this.previewing = ko.observable(false); this.numberOfResources = ko.observable(); this.numberOfTiles = ko.observable(); this.showPreview = ko.observable(false); this.activeTab = ko.observable("TileDeletion"); - this.deleteTiles.subscribe((val) => { - if (!val){ - self.selectedNodegroup(null); - } + this.activeTab.subscribe(() => { + self.selectedGraph(null); + self.selectedNodegroup(null); + self.searchUrl(null); }); this.ready = ko.computed(()=>{ self.showPreview(false); self.numberOfResources(null); self.numberOfTiles(null); - return (self.searchUrl() && !self.deleteTiles()) || (self.selectedGraph() && !self.deleteTiles()) || (self.selectedNodegroup() && self.deleteTiles()); + return (self.searchUrl() && self.activeTab() === "DeletionBySearchUrl") + || (self.selectedGraph() && self.activeTab() === "DeletionByGraph") + || (self.selectedNodegroup() && self.activeTab() === "TileDeletion"); }); this.getGraphs = function(){