From b7eb82ad7158dcc13b604cd6616b87e7a2db5918 Mon Sep 17 00:00:00 2001 From: Fuyao Zhao Date: Fri, 8 Mar 2019 11:18:04 -0800 Subject: [PATCH] [Code]: Disable project setting, branch selection and diff page (#32799) --- .../public/components/admin_page/project_item.tsx | 2 +- .../code/public/components/diff_page/commit_link.tsx | 12 ++++++------ .../plugins/code/public/components/main/top_bar.tsx | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/x-pack/plugins/code/public/components/admin_page/project_item.tsx b/x-pack/plugins/code/public/components/admin_page/project_item.tsx index a66770e265e22f..6176fa47dd6ed9 100644 --- a/x-pack/plugins/code/public/components/admin_page/project_item.tsx +++ b/x-pack/plugins/code/public/components/admin_page/project_item.tsx @@ -109,7 +109,7 @@ class CodeProjectItem extends React.PureComponent<{ const projectManagement = ( - +
{ - const href = DIFF.replace(':resource/:org/:repo', repoUri).replace(':commitId', commit); + // const href = DIFF.replace(':resource/:org/:repo', repoUri).replace(':commitId', commit); return ( - - {children || commit} - + // + {children || commit} + // ); }; diff --git a/x-pack/plugins/code/public/components/main/top_bar.tsx b/x-pack/plugins/code/public/components/main/top_bar.tsx index 50f9face20cbb8..a2da8f2c188e05 100644 --- a/x-pack/plugins/code/public/components/main/top_bar.tsx +++ b/x-pack/plugins/code/public/components/main/top_bar.tsx @@ -51,7 +51,7 @@ export class TopBar extends React.Component { - + ({ value: b.name, text: b.name }))} onChange={this.onChange}