From 5acb43f7ee6a1ca0c664d62dbc04f435c88055d3 Mon Sep 17 00:00:00 2001 From: "Jingwei.Zhang" Date: Tue, 14 Sep 2021 14:40:26 +0800 Subject: [PATCH] feat: Update user avatar 1. Update user avatar 2. Update module export Change-Id: Icd270c2ff153ec51a9c382b372c87fc61da429ab --- src/asset/image/profile.svg | 17 ++++++++--------- .../network/containers/SecurityGroup/index.jsx | 12 ++++++++---- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/src/asset/image/profile.svg b/src/asset/image/profile.svg index 004980da..9e5f61b0 100644 --- a/src/asset/image/profile.svg +++ b/src/asset/image/profile.svg @@ -1,16 +1,15 @@ - profile - - - - - + + + + + - - - + + + diff --git a/src/pages/network/containers/SecurityGroup/index.jsx b/src/pages/network/containers/SecurityGroup/index.jsx index aea14992..7be43a02 100644 --- a/src/pages/network/containers/SecurityGroup/index.jsx +++ b/src/pages/network/containers/SecurityGroup/index.jsx @@ -20,9 +20,7 @@ import globalSecurityGroupStore, { import { emptyActionConfig } from 'utils/constants'; import actionConfigs from './actions'; -@inject('rootStore') -@observer -export default class SecurityGroups extends Base { +export class SecurityGroups extends Base { init() { this.store = globalSecurityGroupStore; this.downloadStore = new SecurityGroupStore(); @@ -62,11 +60,15 @@ export default class SecurityGroups extends Base { return true; } + get detailLink() { + return `/network/${this.getUrl('security-group')}/detail`; + } + getColumns = () => [ { title: t('ID/Name'), dataIndex: 'name', - linkPrefix: `/network/${this.getUrl('security-group')}/detail`, + linkPrefix: this.detailLink, }, { title: t('Project ID/Name'), @@ -95,3 +97,5 @@ export default class SecurityGroups extends Base { ]; } } + +export default inject('rootStore')(observer(SecurityGroups));