+
+
)
}
diff --git a/frontend/src/old-pages/Configure/SlurmMemorySettings.tsx b/frontend/src/old-pages/Configure/SlurmMemorySettings.tsx
new file mode 100644
index 00000000..c0da22d5
--- /dev/null
+++ b/frontend/src/old-pages/Configure/SlurmMemorySettings.tsx
@@ -0,0 +1,119 @@
+// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
+// with the License. A copy of the License is located at
+//
+// http://aws.amazon.com/apache2.0/
+//
+// or in the "LICENSE.txt" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
+// OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions and
+// limitations under the License.
+
+import * as React from 'react'
+import {Trans, useTranslation} from 'react-i18next'
+import {
+ Container,
+ Header,
+ Alert,
+ Toggle,
+ SpaceBetween,
+ Popover,
+ Link,
+} from '@awsui/components-react'
+import {setState, getState, useState, clearState} from '../../store'
+
+function SlurmMemorySettings() {
+ const {t} = useTranslation()
+ const [infoAlertVisible, setInfoAlertVisible] = React.useState(false)
+ const slurmSettingsPath = [
+ 'app',
+ 'wizard',
+ 'config',
+ 'Scheduling',
+ 'SlurmSettings',
+ ]
+ const memoryBasedSchedulingEnabledPath = [
+ ...slurmSettingsPath,
+ 'EnableMemoryBasedScheduling',
+ ]
+ const memoryBasedSchedulingEnabled = useState(
+ memoryBasedSchedulingEnabledPath,
+ )
+
+ const toggleMemoryBasedSchedulingEnabled = () => {
+ const setMemoryBasedSchedulingEnabled = !memoryBasedSchedulingEnabled
+ if (setMemoryBasedSchedulingEnabled)
+ setState(
+ memoryBasedSchedulingEnabledPath,
+ setMemoryBasedSchedulingEnabled,
+ )
+ else {
+ clearState(memoryBasedSchedulingEnabledPath)
+ if (Object.keys(getState([...slurmSettingsPath])).length === 0)
+ clearState([...slurmSettingsPath])
+ }
+ }
+
+ return (
+
+
+ {t('wizard.queues.slurmMemorySettings.container.title')}
+
+
+
+ }
+ >
+
+ {t('wizard.queues.slurmMemorySettings.container.info')}
+
+
+
+
+ }
+ >
+
+