diff --git a/src/webportal/src/app/job-submission/components/data/team-detail.jsx b/src/webportal/src/app/job-submission/components/data/team-detail.jsx
index d0e7a13019..726e550d50 100644
--- a/src/webportal/src/app/job-submission/components/data/team-detail.jsx
+++ b/src/webportal/src/app/job-submission/components/data/team-detail.jsx
@@ -34,45 +34,84 @@ export default function TeamDetail({ isOpen = false, config, hide }) {
hide();
};
- const columes = [
- {
- key: 'containerPath',
- name: 'Path',
- headerClassName: FontClassNames.semibold,
- minWidth: 120,
- onRender: item => {
- return (
-
{`/mnt/${item.name}`}
- );
- },
- },
- {
- key: 'serverType',
- name: 'Server Type',
- headerClassName: FontClassNames.semibold,
- minWidth: 80,
- onRender: item => {
- if (item === undefined) {
- return {'Invalid Server'}
;
- } else {
- return {item.type}
;
- }
+ const columes = config => {
+ const result = [
+ {
+ key: 'containerPath',
+ name: 'Path',
+ headerClassName: FontClassNames.semibold,
+ minWidth: 120,
+ onRender: item => {
+ return (
+ {`/mnt/${item.name}`}
+ );
+ },
},
- },
- {
- key: 'serverPath',
- name: 'Server Path(Server Root Path as bold)',
- headerClassName: FontClassNames.semibold,
- minWidth: 400,
- onRender: item => {
- if (item === undefined) {
- return {'Invalid Server'}
;
- } else {
- return SERVER_PATH[item.type](item);
- }
+ {
+ key: 'serverType',
+ name: 'Server Type',
+ headerClassName: FontClassNames.semibold,
+ minWidth: 80,
+ onRender: item => {
+ if (item === undefined) {
+ return (
+ {'Invalid Server'}
+ );
+ } else {
+ return {item.type}
;
+ }
+ },
},
- },
- {
+ ];
+ if (config.type === 'dshuttle') {
+ result.push({
+ key: 'ufsType',
+ name: 'UFS Type',
+ headerClassName: FontClassNames.semibold,
+ minWidth: 80,
+ onRender: item => {
+ if (item === undefined) {
+ return {'Invalid Type'}
;
+ } else if (item.data.ufsType === 'wasb') {
+ return 'azureBlob';
+ } else {
+ return item.data.ufsType;
+ }
+ },
+ });
+ result.push({
+ key: 'ufsServerPath',
+ name: 'UFS Server Path(Server Root Path as bold)',
+ headerClassName: FontClassNames.semibold,
+ minWidth: 350,
+ onRender: item => {
+ if (item === undefined) {
+ return (
+ {'Invalid Server'}
+ );
+ } else {
+ return SERVER_PATH[item.type](item);
+ }
+ },
+ });
+ } else {
+ result.push({
+ key: 'serverPath',
+ name: 'Server Path(Server Root Path as bold)',
+ headerClassName: FontClassNames.semibold,
+ minWidth: 400,
+ onRender: item => {
+ if (item === undefined) {
+ return (
+ {'Invalid Server'}
+ );
+ } else {
+ return SERVER_PATH[item.type](item);
+ }
+ },
+ });
+ }
+ result.push({
key: 'permission',
name: 'Permission',
headerClassName: FontClassNames.semibold,
@@ -84,8 +123,10 @@ export default function TeamDetail({ isOpen = false, config, hide }) {
);
},
- },
- ];
+ });
+
+ return result;
+ };
return (