Browse Source

Update ProvisionerSettings.tsx (#3340)

jusrhee 3 năm trước cách đây
mục cha
commit
4e60d4a14a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      dashboard/src/components/ProvisionerSettings.tsx

+ 1 - 1
dashboard/src/components/ProvisionerSettings.tsx

@@ -879,7 +879,7 @@ const ProvisionerSettings: React.FC<Props> = (props) => {
       <StyledForm>{renderForm()}</StyledForm>
       <Button
         // disabled={isDisabled()}
-        disabled={currentCluster ? true : isDisabled()}
+        disabled={user?.email === "admin@porter.run" ? false : (currentCluster ? true : isDisabled())}
         onClick={createCluster}
         status={getStatus()}
       >