fix: Fix the store path in magnum and required name in zun container
1. Change the store path from 'src/stores' to 'stores' to avoid some strange bugs 2. Make the container name be required Change-Id: If299e6791ce5c30be936fbd5fbc2b5427a59ff39
This commit is contained in:
parent
d6b68d3f12
commit
463ced2667
@ -15,9 +15,9 @@
|
||||
import React from 'react';
|
||||
import { inject, observer } from 'mobx-react';
|
||||
import Base from 'components/Form';
|
||||
import globalImageStore from 'src/stores/glance/image';
|
||||
import globalKeypairStore from 'src/stores/nova/keypair';
|
||||
import FlavorSelectTable from 'src/pages/compute/containers/Instance/components/FlavorSelectTable';
|
||||
import globalImageStore from 'stores/glance/image';
|
||||
import globalKeypairStore from 'stores/nova/keypair';
|
||||
import FlavorSelectTable from 'pages/compute/containers/Instance/components/FlavorSelectTable';
|
||||
import { getImageColumns } from 'resources/glance/image';
|
||||
import { getKeyPairHeader } from 'resources/nova/keypair';
|
||||
|
||||
|
@ -65,7 +65,7 @@ export class StepInfo extends Base {
|
||||
const values = {};
|
||||
const { initKeyPair } = this.state;
|
||||
if (initKeyPair) {
|
||||
values.keypairs = initKeyPair;
|
||||
values.keypair = initKeyPair;
|
||||
}
|
||||
|
||||
const { template } = this.locationParams;
|
||||
|
@ -66,6 +66,7 @@ export class StepInfo extends Base {
|
||||
label: t('Container Name'),
|
||||
type: 'input',
|
||||
placeholder: t('Container Name'),
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
name: 'images',
|
||||
|
Loading…
Reference in New Issue
Block a user