Fixed storage class selectors for add & edit pool wizards (#2183)
Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>
This commit is contained in:
@@ -274,7 +274,7 @@ const PoolResources = ({ classes }: IPoolResourcesProps) => {
|
||||
id="storage_class"
|
||||
name="storage_class"
|
||||
onChange={(e: SelectChangeEvent<string>) => {
|
||||
setFieldInfo("storageClasses", e.target.value as string);
|
||||
setFieldInfo("storageClass", e.target.value as string);
|
||||
}}
|
||||
label="Storage Class"
|
||||
value={storageClass}
|
||||
|
||||
@@ -256,7 +256,7 @@ const PoolResources = ({ classes }: IPoolResourcesProps) => {
|
||||
id="storage_class"
|
||||
name="storage_class"
|
||||
onChange={(e: SelectChangeEvent<string>) => {
|
||||
setFieldInfo("storageClasses", e.target.value as string);
|
||||
setFieldInfo("storageClass", e.target.value as string);
|
||||
}}
|
||||
label="Storage Class"
|
||||
value={storageClass}
|
||||
|
||||
@@ -23,7 +23,7 @@ import { generatePoolName } from "../../../../../../../common/utils";
|
||||
import { getDefaultAffinity, getNodeSelector } from "../../../utils";
|
||||
import { IEditPoolItem, IEditPoolRequest } from "../../../../ListTenants/types";
|
||||
import { resetEditPoolForm } from "../editPoolSlice";
|
||||
import { setTenantDetailsLoad } from "../../../../tenantsSlice";
|
||||
import { getTenantAsync } from "../../../../thunks/tenantDetailsAsync";
|
||||
|
||||
export const editPoolAsync = createAsyncThunk(
|
||||
"editPool/editPoolAsync",
|
||||
@@ -128,7 +128,7 @@ export const editPoolAsync = createAsyncThunk(
|
||||
)
|
||||
.then(() => {
|
||||
dispatch(resetEditPoolForm());
|
||||
dispatch(setTenantDetailsLoad(true));
|
||||
dispatch(getTenantAsync());
|
||||
return poolsURL;
|
||||
})
|
||||
.catch((err: ErrorResponseHandler) => {
|
||||
|
||||
Reference in New Issue
Block a user