Skip to content

Commit

Permalink
[Code]: Disable project setting, branch selection and diff page (#32799)
Browse files Browse the repository at this point in the history
  • Loading branch information
zfy0701 authored Mar 8, 2019
1 parent 5512779 commit b7eb82a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class CodeProjectItem extends React.PureComponent<{
const projectManagement = (
<EuiFlexItem grow={false}>
<EuiFlexGroup gutterSize="none">
<EuiFlexItem grow={false}>
<EuiFlexItem grow={false} style={{ display: 'none' }}>
<div
className="code-project-button"
data-test-subj="settingsRepositoryButton"
Expand Down
12 changes: 6 additions & 6 deletions x-pack/plugins/code/public/components/diff_page/commit_link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import { EuiBadge, EuiLink } from '@elastic/eui';
import { EuiBadge /*, EuiLink*/ } from '@elastic/eui';
import React from 'react';
import { DIFF } from '../routes';
// import { DIFF } from '../routes';

interface Props {
repoUri: string;
Expand All @@ -14,10 +14,10 @@ interface Props {
}

export const CommitLink = ({ repoUri, commit, children }: Props) => {
const href = DIFF.replace(':resource/:org/:repo', repoUri).replace(':commitId', commit);
// const href = DIFF.replace(':resource/:org/:repo', repoUri).replace(':commitId', commit);
return (
<EuiLink href={`#${href}`}>
<EuiBadge color="hollow">{children || commit}</EuiBadge>
</EuiLink>
// <EuiLink href={`#${href}`}>
<EuiBadge color="hollow">{children || commit}</EuiBadge>
// </EuiLink>
);
};
2 changes: 1 addition & 1 deletion x-pack/plugins/code/public/components/main/top_bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class TopBar extends React.Component<Props, { value: string }> {
<EuiFlexGroup gutterSize="none" justifyContent="spaceBetween">
<EuiFlexItem>
<EuiFlexGroup gutterSize="none">
<SelectContainer grow={false}>
<SelectContainer grow={false} style={{ display: 'none' }}>
<EuiSelect
options={this.props.branches.map(b => ({ value: b.name, text: b.name }))}
onChange={this.onChange}
Expand Down

0 comments on commit b7eb82a

Please sign in to comment.