Kaynağa Gözat

re-add invite admin (#3260)

Feroze Mohideen 2 yıl önce
ebeveyn
işleme
2899c1d8bd
1 değiştirilmiş dosya ile 11 ekleme ve 0 silme
  1. 11 0
      dashboard/src/components/CloudFormationForm.tsx

+ 11 - 0
dashboard/src/components/CloudFormationForm.tsx

@@ -88,6 +88,17 @@ const CloudFormationForm: React.FC<Props> = ({
       if (!hasSentAWSNotif) {
         setHasSentAWSNotif(true);
         markStepStarted({ step: "aws-account-id-complete", account_id: accountId });
+        if (currentProject != null) {
+          try {
+            api.inviteAdmin(
+              "<token>",
+              {},
+              { project_id: currentProject.id }
+            );
+          } catch (err) {
+            console.log(err);
+          }
+        }
       }
     } else {
       setCurrentStep(0);