Merge "fix: Show the image which has no usage_type"

This commit is contained in:
Zuul 2021-09-09 02:31:21 +00:00 committed by Gerrit Code Review
commit 936f598932

View File

@ -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';