Remove all signs of Import osquery config page (#1015)

This commit is contained in:
Kyle Knight 2017-01-19 11:24:01 -06:00 committed by Jason Meller
parent 77f32a3d4e
commit 2b55cf3acf
4 changed files with 32 additions and 25 deletions

View file

@ -15,7 +15,25 @@ class ConfirmationPage extends Component {
handleSubmit: PropTypes.func,
};
importOsqueryConfig = () => {
const disableImport = true;
if (disableImport) {
return false;
}
return (
<div className={`${baseClass}__import`}>
<Checkbox name="import-install">
<p>I am migrating an existing <strong>osquery</strong> installation.</p>
<p>Take me to the <strong>Import Configuration</strong> page.</p>
</Checkbox>
</div>
);
}
render () {
const { importOsqueryConfig } = this;
const {
className,
handleSubmit,
@ -55,12 +73,7 @@ class ConfirmationPage extends Component {
</tbody>
</table>
<div className={`${baseClass}__import`}>
<Checkbox name="import-install">
<p>I am migrating an existing <strong>osquery</strong> installation.</p>
<p>Take me to the <strong>Import Configuration</strong> page.</p>
</Checkbox>
</div>
{importOsqueryConfig()}
</div>
<Button type="submit" variant="gradient" className={`${baseClass}__submit`} autofocus>

View file

@ -56,7 +56,10 @@ class SiteNavSidePanel extends Component {
const navItemClasses = classnames(
`${navItemBaseClass}`,
{ [`${navItemBaseClass}--active`]: active }
{
[`${navItemBaseClass}--active`]: active,
[`${navItemBaseClass}--single`]: subItems.length === 0,
}
);
return (

View file

@ -83,6 +83,14 @@
@include transform(translate(-2px, 3px));
}
}
&.site-nav-item--single {
.site-nav-item__button {
&::before {
height: 41px;
}
}
}
}
&:last-child {

View file

@ -114,24 +114,7 @@ export default (admin) => {
regex: /^\/config/,
pathname: '/config/options',
},
subItems: [
{
icon: 'config',
name: 'Osquery Options',
location: {
regex: /\/config\/options/,
pathname: '/config/options',
},
},
{
icon: 'import',
name: 'Import Config',
location: {
regex: /\/config\/import/,
pathname: '/config/import',
},
},
],
subItems: [],
},
{
icon: 'help',