Spaces:
Sleeping
Sleeping
some fixes
Browse files
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:
|
|
|
|
|
|
|
| 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,
|