mirror of
https://github.com/OpenNebula/one.git
synced 2025-04-01 06:50:25 +03:00
parent
9b9f9195a0
commit
4c1ab6efee
@ -38,10 +38,11 @@ function CreateDatastore() {
|
||||
const [allocate] = useAllocateDatastoreMutation()
|
||||
const { enqueueSuccess } = useGeneralApi()
|
||||
|
||||
const onSubmit = async ({ template }) => {
|
||||
const onSubmit = async ({ template, cluster }) => {
|
||||
try {
|
||||
const newTemplateId = await allocate({
|
||||
template: jsonToXml(template),
|
||||
cluster,
|
||||
}).unwrap()
|
||||
history.push(PATH.STORAGE.DATASTORES.LIST)
|
||||
enqueueSuccess(`Datastore created - #${newTemplateId}`)
|
||||
|
Loading…
x
Reference in New Issue
Block a user