Merge "fix: Fix for create image from volume"
This commit is contained in:
commit
7b1e35c1f0
@ -14,7 +14,7 @@
|
||||
|
||||
import { inject, observer } from 'mobx-react';
|
||||
import { ModalAction } from 'containers/Action';
|
||||
import { imageOS, imageFormats } from 'resources/image';
|
||||
import { volumeCreateImageTypes, imageOS } from 'resources/image';
|
||||
import globalVolumeStore from 'stores/cinder/volume';
|
||||
import { isAvailable } from 'resources/volume';
|
||||
|
||||
@ -46,10 +46,9 @@ export class CreateImage extends ModalAction {
|
||||
}
|
||||
|
||||
get formatList() {
|
||||
// todo: filter formats by settings
|
||||
return Object.keys(imageFormats).map((key) => ({
|
||||
return Object.keys(volumeCreateImageTypes).map((key) => ({
|
||||
label: volumeCreateImageTypes[key],
|
||||
value: key,
|
||||
label: imageFormats[key],
|
||||
}));
|
||||
}
|
||||
|
||||
|
@ -62,6 +62,11 @@ export const imageFormatsConsole = {
|
||||
iso: t('ISO - Optical disc image format'),
|
||||
};
|
||||
|
||||
export const volumeCreateImageTypes = {
|
||||
raw: t('RAW - Raw disk image format'),
|
||||
qcow2: t('QCOW2 - QEMU image format'),
|
||||
};
|
||||
|
||||
export const imageFormatsAdmin = {
|
||||
aki: t('AKI - Amazon kernel image format'),
|
||||
ari: t('ARI - Amazon ramdisk image format'),
|
||||
|
Loading…
Reference in New Issue
Block a user