fix: hide project_id when modifies metadata
1. project_id should not be modified when mirror modifies metadata 2. mirror details page does not need to display the custom attribute project_id Change-Id: Id629f94429ea1ee6556046f5f3d9e22b3a578b40
This commit is contained in:
parent
04d150cc5b
commit
83a1b938c1
@ -93,10 +93,9 @@ export default class ManageMetadata extends ModalAction {
|
|||||||
size,
|
size,
|
||||||
image_type,
|
image_type,
|
||||||
self,
|
self,
|
||||||
project_name,
|
|
||||||
virtual_size,
|
virtual_size,
|
||||||
...rest
|
...rest
|
||||||
} = this.item;
|
} = this.item.originData;
|
||||||
return rest;
|
return rest;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -88,9 +88,7 @@ export const imageProperties = {
|
|||||||
min_ram: t('Min. RAM'),
|
min_ram: t('Min. RAM'),
|
||||||
name: t('Name'),
|
name: t('Name'),
|
||||||
owner: t('Owner'),
|
owner: t('Owner'),
|
||||||
tags: t('Tags'),
|
|
||||||
updated_at: t('Updated At'),
|
updated_at: t('Updated At'),
|
||||||
virtual_size: t('Virtual Size'),
|
|
||||||
visibility: t('Visibility'),
|
visibility: t('Visibility'),
|
||||||
description: t('Description'),
|
description: t('Description'),
|
||||||
architecture: t('Architecture'),
|
architecture: t('Architecture'),
|
||||||
|
@ -54,11 +54,13 @@ export class ImageStore extends Base {
|
|||||||
return (data, filters, isDetail) => {
|
return (data, filters, isDetail) => {
|
||||||
if (isDetail) {
|
if (isDetail) {
|
||||||
return {
|
return {
|
||||||
|
originData: { ...data },
|
||||||
...data,
|
...data,
|
||||||
project_id: data.owner,
|
project_id: data.owner,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
|
originData: { ...data },
|
||||||
...data,
|
...data,
|
||||||
project_id: data.owner,
|
project_id: data.owner,
|
||||||
project_name: data.owner_project_name || data.project_name,
|
project_name: data.owner_project_name || data.project_name,
|
||||||
|
Loading…
Reference in New Issue
Block a user