Skip to content

Commit b7eb82a

Browse files
authored
[Code]: Disable project setting, branch selection and diff page (#32799)
1 parent 5512779 commit b7eb82a

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

x-pack/plugins/code/public/components/admin_page/project_item.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class CodeProjectItem extends React.PureComponent<{
109109
const projectManagement = (
110110
<EuiFlexItem grow={false}>
111111
<EuiFlexGroup gutterSize="none">
112-
<EuiFlexItem grow={false}>
112+
<EuiFlexItem grow={false} style={{ display: 'none' }}>
113113
<div
114114
className="code-project-button"
115115
data-test-subj="settingsRepositoryButton"

x-pack/plugins/code/public/components/diff_page/commit_link.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
* or more contributor license agreements. Licensed under the Elastic License;
44
* you may not use this file except in compliance with the Elastic License.
55
*/
6-
import { EuiBadge, EuiLink } from '@elastic/eui';
6+
import { EuiBadge /*, EuiLink*/ } from '@elastic/eui';
77
import React from 'react';
8-
import { DIFF } from '../routes';
8+
// import { DIFF } from '../routes';
99

1010
interface Props {
1111
repoUri: string;
@@ -14,10 +14,10 @@ interface Props {
1414
}
1515

1616
export const CommitLink = ({ repoUri, commit, children }: Props) => {
17-
const href = DIFF.replace(':resource/:org/:repo', repoUri).replace(':commitId', commit);
17+
// const href = DIFF.replace(':resource/:org/:repo', repoUri).replace(':commitId', commit);
1818
return (
19-
<EuiLink href={`#${href}`}>
20-
<EuiBadge color="hollow">{children || commit}</EuiBadge>
21-
</EuiLink>
19+
// <EuiLink href={`#${href}`}>
20+
<EuiBadge color="hollow">{children || commit}</EuiBadge>
21+
// </EuiLink>
2222
);
2323
};

x-pack/plugins/code/public/components/main/top_bar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export class TopBar extends React.Component<Props, { value: string }> {
5151
<EuiFlexGroup gutterSize="none" justifyContent="spaceBetween">
5252
<EuiFlexItem>
5353
<EuiFlexGroup gutterSize="none">
54-
<SelectContainer grow={false}>
54+
<SelectContainer grow={false} style={{ display: 'none' }}>
5555
<EuiSelect
5656
options={this.props.branches.map(b => ({ value: b.name, text: b.name }))}
5757
onChange={this.onChange}

0 commit comments

Comments
 (0)