|
@@ -19,7 +19,6 @@ import { nativeFileSystemSupported } from "../data/filesystem";
|
|
import { Theme } from "../element/types";
|
|
import { Theme } from "../element/types";
|
|
|
|
|
|
import "../components/ToolIcon.scss";
|
|
import "../components/ToolIcon.scss";
|
|
-import { getDateTime } from "../utils";
|
|
|
|
|
|
|
|
export const actionChangeProjectName = register({
|
|
export const actionChangeProjectName = register({
|
|
name: "changeProjectName",
|
|
name: "changeProjectName",
|
|
@@ -30,7 +29,7 @@ export const actionChangeProjectName = register({
|
|
PanelComponent: ({ appState, updateData, appProps, data }) => (
|
|
PanelComponent: ({ appState, updateData, appProps, data }) => (
|
|
<ProjectName
|
|
<ProjectName
|
|
label={t("labels.fileTitle")}
|
|
label={t("labels.fileTitle")}
|
|
- value={appState.name || `${t("labels.untitled")}-${getDateTime()}`}
|
|
|
|
|
|
+ value={appState.name}
|
|
onChange={(name: string) => updateData(name)}
|
|
onChange={(name: string) => updateData(name)}
|
|
isNameEditable={
|
|
isNameEditable={
|
|
typeof appProps.name === "undefined" && !appState.viewModeEnabled
|
|
typeof appProps.name === "undefined" && !appState.viewModeEnabled
|