Sfoglia il codice sorgente

pre-deletion cluster settings

Justin Rhee 3 anni fa
parent
commit
cafe20998b

+ 1 - 0
api/server/handlers/api_contract/update.go

@@ -53,6 +53,7 @@ func (c *APIContractUpdateHandler) ServeHTTP(w http.ResponseWriter, r *http.Requ
 		}
 		w.WriteHeader(http.StatusCreated)
 		c.WriteResult(w, r, rev)
+		return
 	}
 
 	updateRequest := connect.NewRequest(&porterv1.UpdateContractRequest{

+ 1 - 1
dashboard/src/main/home/cluster-dashboard/dashboard/ClusterRevisionSelector.tsx

@@ -37,7 +37,7 @@ const ClusterRevisionSelector: React.FC<Props> = ({
       return Date.parse(a.CreatedAt) > Date.parse(b.CreatedAt) ? -1 : 1;
     });
     let activeCandidate;
-    if (data[0].condition === "UPDATING" || data[0].condition === "UPDATING_UNAVAILABLE") {
+    if (data[0].condition === "") {
       activeCandidate = data[0];
       setPendingContract(activeCandidate);
     };