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

Updated body param for disable new comments

jnfrati 3 лет назад
Родитель
Сommit
c2c59099bc

+ 1 - 1
dashboard/src/main/home/cluster-dashboard/preview-environments/environments/EnvironmentSettings.tsx

@@ -105,7 +105,7 @@ const EnvironmentSettings = ({ environmentId }: { environmentId: string }) => {
         "<token>",
         "<token>",
         {
         {
           mode: deploymentMode,
           mode: deploymentMode,
-          new_comment_enabled: !isNewCommentsDisabled,
+          disable_new_comments: isNewCommentsDisabled,
           git_repo_branches: selectedBranches,
           git_repo_branches: selectedBranches,
         },
         },
         {
         {

+ 1 - 1
dashboard/src/shared/api.tsx

@@ -164,7 +164,7 @@ const createEnvironment = baseApi<
 const updateEnvironment = baseApi<
 const updateEnvironment = baseApi<
   {
   {
     mode: "auto" | "manual";
     mode: "auto" | "manual";
-    new_comment_enabled: boolean;
+    disable_new_comments: boolean;
     git_repo_branches: string[]; // Array with branch names
     git_repo_branches: string[]; // Array with branch names
   },
   },
   {
   {