Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Code]: Disable project setting, branch selection and diff page #32799

Merged
merged 1 commit into from
Mar 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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