mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
Remove all signs of Import osquery config page (#1015)
This commit is contained in:
parent
77f32a3d4e
commit
2b55cf3acf
4 changed files with 32 additions and 25 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -56,7 +56,10 @@ class SiteNavSidePanel extends Component {
|
|||
|
||||
const navItemClasses = classnames(
|
||||
`${navItemBaseClass}`,
|
||||
{ [`${navItemBaseClass}--active`]: active }
|
||||
{
|
||||
[`${navItemBaseClass}--active`]: active,
|
||||
[`${navItemBaseClass}--single`]: subItems.length === 0,
|
||||
}
|
||||
);
|
||||
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -83,6 +83,14 @@
|
|||
@include transform(translate(-2px, 3px));
|
||||
}
|
||||
}
|
||||
|
||||
&.site-nav-item--single {
|
||||
.site-nav-item__button {
|
||||
&::before {
|
||||
height: 41px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in a new issue