1. Add manila share page in console and administrator 2. Add console create share 3. Add console edit share 4. Add delete share in console and administrator 5. Add share quota info in console overview page 6. Add share quota info in administrator project detail page 7. Add share metadata tab in share detail page 8. Add create share metadata in console 9. Add edit share metadata in console 10. Add delete share metadata in console and administrator 11. Add manage share metadata action in console 12. Add access rule tab in share detail page 13. Add crate access rule in console 14. Add delete acees rule in console and administrator 15. Add manage access rule metadata in console 16. Add manage access rule action in console Change-Id: I8c80c80340e214827bcde0d62dc0521e4b2b1ea9
63 lines
1.3 KiB
JavaScript
63 lines
1.3 KiB
JavaScript
export const shareGroupStatus = {
|
|
available: t('Available'),
|
|
error: t('Error'),
|
|
creating: t('Creating'),
|
|
deleting: t('Deleting'),
|
|
};
|
|
|
|
export const getShareGroupColumns = (self) => {
|
|
return [
|
|
{
|
|
title: t('ID/Name'),
|
|
dataIndex: 'name',
|
|
routeName: self.getRouteName('shareGroupDetail'),
|
|
},
|
|
{
|
|
title: t('Project ID/Name'),
|
|
dataIndex: 'project_name',
|
|
isHideable: true,
|
|
hidden: !self.isAdminPage,
|
|
},
|
|
{
|
|
title: t('Description'),
|
|
dataIndex: 'description',
|
|
isHideable: true,
|
|
},
|
|
{
|
|
title: t('Availability Zone'),
|
|
dataIndex: 'availability_zone',
|
|
},
|
|
{
|
|
title: t('Share Network'),
|
|
dataIndex: 'share_network_id',
|
|
render: (value) => {
|
|
if (!value) {
|
|
return '-';
|
|
}
|
|
const link = self.getLinkRender('shareNetworkDetail', value, {
|
|
id: value,
|
|
});
|
|
return link;
|
|
},
|
|
},
|
|
{
|
|
title: t('Status'),
|
|
dataIndex: 'status',
|
|
render: (value) => shareGroupStatus[value] || value,
|
|
},
|
|
{
|
|
title: t('Created At'),
|
|
dataIndex: 'created_at',
|
|
isHideable: true,
|
|
valueRender: 'sinceTime',
|
|
},
|
|
];
|
|
};
|
|
|
|
export const shareGroupFilters = [
|
|
{
|
|
label: t('Name'),
|
|
name: 'name',
|
|
},
|
|
];
|