diff --git a/app-frontend/src/containers/Apps/AppConfigs.tsx b/app-frontend/src/containers/Apps/AppConfigs.tsx index 2c06e90..fda953a 100644 --- a/app-frontend/src/containers/Apps/AppConfigs.tsx +++ b/app-frontend/src/containers/Apps/AppConfigs.tsx @@ -12,18 +12,24 @@ import { import Toaster from "../../utils/Toaster"; import Utils from "../../utils/Utils"; import { AppDetailsTabProps } from "./AppDetails"; +import ClickableLink from "../global/ClickableLink"; const Search = Input.Search; export default class AppConfigs extends Component< AppDetailsTabProps, - { dummyVar: undefined; forceEditableInstanceCount: boolean } + { + dummyVar: undefined; + forceEditableNodeId: boolean; + forceEditableInstanceCount: boolean; + } > { constructor(props: any) { super(props); this.state = { dummyVar: undefined, - forceEditableInstanceCount: false + forceEditableInstanceCount: false, + forceEditableNodeId: false }; } @@ -189,6 +195,7 @@ export default class AppConfigs extends Component< } createVolSection() { + const self = this; const app = this.props.apiData!.appDefinition; if (!app.hasPersistentData) return
; @@ -220,44 +227,41 @@ export default class AppConfigs extends Component<

+
+ + + + + { + const newApiData = Utils.copyObject(self.props.apiData); + newApiData.appDefinition.nodeId = e.target.value; + self.props.updateApiData(newApiData); + }} + /> + + + + + + + + +

); - - /* -
-
- -
-
- -
- -
-
-
- - - - Node ID   - - - - - -
-
-
-
-
-

- WARNING: Changing Node ID causes the content of your persistent directories to be deleted! -

-
-
- */ } render() { @@ -315,8 +319,9 @@ export default class AppConfigs extends Component<

{this.createVolSection()} +
- + -
+