From b9cec5bd26b47d536009a755ef16e18f87b398db Mon Sep 17 00:00:00 2001 From: Fuyao Zhao Date: Fri, 8 Mar 2019 10:56:25 -0800 Subject: [PATCH] [Code]: Disable project setting, branch selection and diff page --- .../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 a66770e265e22..6176fa47dd6ed 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 50f9face20cbb..a2da8f2c188e0 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}