Merge "fix: Show the image which has no usage_type"
This commit is contained in:
commit
936f598932
@ -131,10 +131,10 @@ export const isSnapshot = (item) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const canImageCreateInstance = (item) =>
|
export const canImageCreateInstance = (item) =>
|
||||||
item.status === 'active' && item.usage_type === 'common';
|
item.status === 'active' && (item.usage_type === 'common' || item.usage_type === undefined);
|
||||||
|
|
||||||
export const canImageCreateIronicInstance = (item) =>
|
export const canImageCreateIronicInstance = (item) =>
|
||||||
item.status === 'active' && item.usage_type === 'ironic';
|
item.status === 'active' && (item.usage_type === 'ironic' || item.usage_type === undefined);
|
||||||
|
|
||||||
export const canSnapshotCreateInstance = (item) => item.status === 'active';
|
export const canSnapshotCreateInstance = (item) => item.status === 'active';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user