enzostvs HF Staff commited on
Commit
6544cd3
·
1 Parent(s): 7722a19

some fixes

Browse files
Files changed (1) hide show
  1. components/editor/index.tsx +4 -2
components/editor/index.tsx CHANGED
@@ -92,9 +92,11 @@ export const AppEditor = ({
92
  horizontal: "hidden",
93
  },
94
  wordWrap: "on",
95
- readOnly: !!isAiWorking || !!currentCommit,
96
  readOnlyMessage: {
97
- value: currentCommit
 
 
98
  ? "You can't edit the code, as this is an old version of the project."
99
  : "Wait for DeepSite to finish working...",
100
  isTrusted: true,
 
92
  horizontal: "hidden",
93
  },
94
  wordWrap: "on",
95
+ readOnly: !!isAiWorking || !!currentCommit || isNew,
96
  readOnlyMessage: {
97
+ value: isNew
98
+ ? "You can't edit the code, as this is a new project. Ask DeepSite first."
99
+ : currentCommit
100
  ? "You can't edit the code, as this is an old version of the project."
101
  : "Wait for DeepSite to finish working...",
102
  isTrusted: true,