From 4edd0784e39d095c96874fe24917d82667988994 Mon Sep 17 00:00:00 2001 From: zhangjingwei Date: Tue, 18 Oct 2022 11:47:28 +0800 Subject: [PATCH] fix: fix the download data in the all networks tab Fix the project id value in the download data file in the all networks tab in the console. Closes-Bug: #1993233 Change-Id: I864481ffb8608776ebf000c6a196a215b428ff95 --- src/pages/network/containers/Network/Network.jsx | 2 +- src/resources/neutron/network.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/network/containers/Network/Network.jsx b/src/pages/network/containers/Network/Network.jsx index 7de4e39a..3fee7e1a 100644 --- a/src/pages/network/containers/Network/Network.jsx +++ b/src/pages/network/containers/Network/Network.jsx @@ -121,7 +121,7 @@ export class Networks extends Base { return columns; } if (this.isProjectTab) { - return columns.filter((it) => it.dataIndex !== 'project_id'); + return columns.filter((it) => it.dataIndex !== 'tenant_id'); } if (this.isSharedTab) { return columns.filter((it) => it.dataIndex !== 'shared'); diff --git a/src/resources/neutron/network.jsx b/src/resources/neutron/network.jsx index 66a270c2..51b04a37 100644 --- a/src/resources/neutron/network.jsx +++ b/src/resources/neutron/network.jsx @@ -35,7 +35,7 @@ export const networkColumns = (self) => [ }, { title: t('Is Current Project'), - dataIndex: 'project_id', + dataIndex: 'tenant_id', render: (value) => (value === self.currentProjectId ? t('Yes') : t('No')), hidden: self.isAdminPage, sorter: false,