mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +00:00
Fleet Frontend/UI: Revert wrapper changes (#16424)
This commit is contained in:
parent
ed0346e250
commit
24c7044835
@ -336,39 +336,37 @@ const EditQueryPage = ({
|
||||
return (
|
||||
<>
|
||||
<MainContent className={baseClass}>
|
||||
<div className={`${baseClass}_wrapper`}>
|
||||
<div className={`${baseClass}__form`}>
|
||||
<div className={`${baseClass}__header-links`}>
|
||||
<BackLink
|
||||
text={queryId ? "Back to report" : "Back to queries"}
|
||||
path={backToQueriesPath()}
|
||||
/>
|
||||
</div>
|
||||
<EditQueryForm
|
||||
router={router}
|
||||
onSubmitNewQuery={onSubmitNewQuery}
|
||||
onOsqueryTableSelect={onOsqueryTableSelect}
|
||||
onUpdate={onUpdateQuery}
|
||||
storedQuery={storedQuery}
|
||||
queryIdForEdit={queryId}
|
||||
apiTeamIdForQuery={apiTeamIdForQuery}
|
||||
teamNameForQuery={teamNameForQuery}
|
||||
isStoredQueryLoading={isStoredQueryLoading}
|
||||
showOpenSchemaActionText={showOpenSchemaActionText}
|
||||
onOpenSchemaSidebar={onOpenSchemaSidebar}
|
||||
renderLiveQueryWarning={renderLiveQueryWarning}
|
||||
backendValidators={backendValidators}
|
||||
isQuerySaving={isQuerySaving}
|
||||
isQueryUpdating={isQueryUpdating}
|
||||
hostId={parseInt(location.query.host_ids as string, 10)}
|
||||
queryReportsDisabled={
|
||||
appConfig?.server_settings.query_reports_disabled
|
||||
}
|
||||
showConfirmSaveChangesModal={showConfirmSaveChangesModal}
|
||||
setShowConfirmSaveChangesModal={setShowConfirmSaveChangesModal}
|
||||
<>
|
||||
<div className={`${baseClass}__header-links`}>
|
||||
<BackLink
|
||||
text={queryId ? "Back to report" : "Back to queries"}
|
||||
path={backToQueriesPath()}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<EditQueryForm
|
||||
router={router}
|
||||
onSubmitNewQuery={onSubmitNewQuery}
|
||||
onOsqueryTableSelect={onOsqueryTableSelect}
|
||||
onUpdate={onUpdateQuery}
|
||||
storedQuery={storedQuery}
|
||||
queryIdForEdit={queryId}
|
||||
apiTeamIdForQuery={apiTeamIdForQuery}
|
||||
teamNameForQuery={teamNameForQuery}
|
||||
isStoredQueryLoading={isStoredQueryLoading}
|
||||
showOpenSchemaActionText={showOpenSchemaActionText}
|
||||
onOpenSchemaSidebar={onOpenSchemaSidebar}
|
||||
renderLiveQueryWarning={renderLiveQueryWarning}
|
||||
backendValidators={backendValidators}
|
||||
isQuerySaving={isQuerySaving}
|
||||
isQueryUpdating={isQueryUpdating}
|
||||
hostId={parseInt(location.query.host_ids as string, 10)}
|
||||
queryReportsDisabled={
|
||||
appConfig?.server_settings.query_reports_disabled
|
||||
}
|
||||
showConfirmSaveChangesModal={showConfirmSaveChangesModal}
|
||||
setShowConfirmSaveChangesModal={setShowConfirmSaveChangesModal}
|
||||
/>
|
||||
</>
|
||||
</MainContent>
|
||||
{showSidebar && (
|
||||
<SidePanelContent>
|
||||
|
Loading…
Reference in New Issue
Block a user