From d4759e5a5590da8b0bcb823ca410ea66b4732d5f Mon Sep 17 00:00:00 2001
From: Nagu
Date: Tue, 26 Dec 2023 20:29:15 +0530
Subject: [PATCH 01/20] #932_to_Select
---
web/src/components/storage/VolumeForm.jsx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/src/components/storage/VolumeForm.jsx b/web/src/components/storage/VolumeForm.jsx
index abdb419896..a1ab6c2958 100644
--- a/web/src/components/storage/VolumeForm.jsx
+++ b/web/src/components/storage/VolumeForm.jsx
@@ -73,9 +73,9 @@ const SizeUnitFormSelect = ({ units, ...formSelectProps }) => {
*/
const MountPointFormSelect = ({ volumes, ...formSelectProps }) => {
return (
-
+
+
);
};
From 7b8722f990eb93e7cca7c9f03b262cc4509ea9e2 Mon Sep 17 00:00:00 2001
From: Nagu
Date: Sat, 30 Dec 2023 12:35:12 +0530
Subject: [PATCH 02/20] Formselect was changed
---
package-lock.json | 6 ++++++
web/src/components/storage/VolumeForm.jsx | 8 +++++---
2 files changed, 11 insertions(+), 3 deletions(-)
create mode 100644 package-lock.json
diff --git a/package-lock.json b/package-lock.json
new file mode 100644
index 0000000000..28f53dfe8e
--- /dev/null
+++ b/package-lock.json
@@ -0,0 +1,6 @@
+{
+ "name": "agama",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {}
+}
diff --git a/web/src/components/storage/VolumeForm.jsx b/web/src/components/storage/VolumeForm.jsx
index a1ab6c2958..4191cf3b2a 100644
--- a/web/src/components/storage/VolumeForm.jsx
+++ b/web/src/components/storage/VolumeForm.jsx
@@ -71,14 +71,16 @@ const SizeUnitFormSelect = ({ units, ...formSelectProps }) => {
* @param {object} props.formSelectProps - @see {@link https://www.patternfly.org/components/forms/form-select#props}
* @returns {ReactComponent}
*/
-const MountPointFormSelect = ({ volumes, ...formSelectProps }) => {
+
+const MountPointFormSelect = ({ volumes, ...selectProps }) => {
return (
-
+ {/*
+ /> */}
Date: Tue, 2 Jan 2024 06:59:47 +0530
Subject: [PATCH 04/20] minor errors fixed
---
web/src/components/storage/VolumeForm.jsx | 1 -
web/tsconfig.json | 2 ++
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/web/src/components/storage/VolumeForm.jsx b/web/src/components/storage/VolumeForm.jsx
index 23c0e88627..ddce58a5d2 100644
--- a/web/src/components/storage/VolumeForm.jsx
+++ b/web/src/components/storage/VolumeForm.jsx
@@ -80,7 +80,6 @@ const MountPointFormSelect = ({ volumes, ...selectProps }) => {
);
};
-
/**
* Btrfs file system type can be offered with two flavors, with and without snapshots.
*/
diff --git a/web/tsconfig.json b/web/tsconfig.json
index b5ed43aaf0..b65475713b 100644
--- a/web/tsconfig.json
+++ b/web/tsconfig.json
@@ -1,5 +1,7 @@
{
"compilerOptions": {
+ "strict" : true,
+ "forceConsistentCasingInFileNames": true,
"baseUrl": "./",
"isolatedModules": true,
"noEmit": true,
From 96b8b87623aeb0ca41a25d53fabc396e32e93c0e Mon Sep 17 00:00:00 2001
From: Nagu
Date: Tue, 2 Jan 2024 07:19:16 +0530
Subject: [PATCH 05/20] fixed some errors 2
---
package-lock.json | 6 ------
1 file changed, 6 deletions(-)
delete mode 100644 package-lock.json
diff --git a/package-lock.json b/package-lock.json
deleted file mode 100644
index 28f53dfe8e..0000000000
--- a/package-lock.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "name": "agama",
- "lockfileVersion": 3,
- "requires": true,
- "packages": {}
-}
From 3fb9d268bf51d7e475772b141d3f829b68af3c23 Mon Sep 17 00:00:00 2001
From: Nagu
Date: Tue, 9 Jan 2024 13:52:51 +0530
Subject: [PATCH 06/20] mountpoint modified
---
web/src/components/storage/VolumeForm.jsx | 29 +++++++++++++++--------
1 file changed, 19 insertions(+), 10 deletions(-)
diff --git a/web/src/components/storage/VolumeForm.jsx b/web/src/components/storage/VolumeForm.jsx
index ddce58a5d2..9d4f382728 100644
--- a/web/src/components/storage/VolumeForm.jsx
+++ b/web/src/components/storage/VolumeForm.jsx
@@ -70,12 +70,12 @@ const SizeUnitFormSelect = ({ units, ...formSelectProps }) => {
* @param {Array} props.volumes - a collection of storage volumes
* @param {object} props.formSelectProps - @see {@link https://www.patternfly.org/components/forms/form-select#props}
* @returns {ReactComponent}
- */
+*/
const MountPointFormSelect = ({ volumes, ...selectProps }) => {
return (
- { volumes.map(v => {v.mountPath}) }
+ { volumes.map(v => ) }
);
};
@@ -719,17 +719,26 @@ export default function VolumeForm({ id, volume: currentVolume, templates = [],
const { fsType, snapshots } = state.formData;
+ const ShowMountPointSelector = () => (
+
+ );
+
+ const ShowMountPoint = () => {state.formData.mountPoint}
;
+
return (