Просмотр исходного кода

Merge pull request #1357 from porter-dev/fix/unlimited-cluster-and-machine-type

[FIX] Unlimited cluster and machine type
abelanger5 4 лет назад
Родитель
Сommit
405f1f9a2a

+ 1 - 0
dashboard/src/main/home/dashboard/Dashboard.tsx

@@ -112,6 +112,7 @@ class Dashboard extends Component<PropsType, StateType> {
       let helperColor = "white";
       if (
         this.context.hasBillingEnabled &&
+        this.context.usage.current.clusters !== 0 &&
         this.context.usage.current.clusters >= this.context.usage.limit.clusters
       ) {
         helperText =

+ 1 - 0
dashboard/src/main/home/provisioner/AWSFormSection.tsx

@@ -56,6 +56,7 @@ const regionOptions = [
 
 const machineTypeOptions = [
   { value: "t2.medium", label: "t2.medium" },
+  { value: "t2.large", label: "t2.large" },
   { value: "t2.xlarge", label: "t2.xlarge" },
   { value: "t2.2xlarge", label: "t2.2xlarge" },
   { value: "t3.medium", label: "t3.medium" },