Skip to content

Commit

Permalink
Webui: Fix for adding report for JS bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
adamkankovsky committed Oct 18, 2023
1 parent f8e3b9d commit 3839b45
Showing 1 changed file with 28 additions and 25 deletions.
53 changes: 28 additions & 25 deletions ui/webui/src/components/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,31 +127,34 @@ export const Application = () => {
exception={{ ...criticalError, jsMessage: jsError?.message, backendMessage: criticalError?.message, stack: jsError?.stack }}
isConnected={state.network.connected}
reportLinkURL={bzReportURL} />}
<Page
data-debug={conf.Anaconda.debug}
>
<PageGroup stickyOnBreakpoint={{ default: "top" }}>
<AnacondaHeader
title={title}
reportLinkURL={bzReportURL}
isConnected={state.network.connected}
onCritFail={onCritFail}
/>
</PageGroup>
<AddressContext.Provider value={address}>
<WithDialogs>
<AnacondaWizard
onCritFail={onCritFail}
title={title}
storageData={state.storage}
localizationData={state.localization}
dispatch={dispatch}
conf={conf}
osRelease={osRelease}
/>
</WithDialogs>
</AddressContext.Provider>
</Page>
{!jsError
? (
<Page
data-debug={conf.Anaconda.debug}
>
<PageGroup stickyOnBreakpoint={{ default: "top" }}>
<AnacondaHeader
title={title}
reportLinkURL={bzReportURL}
isConnected={state.network.connected}
onCritFail={onCritFail}
/>
</PageGroup>
<AddressContext.Provider value={address}>
<WithDialogs>
<AnacondaWizard
onCritFail={onCritFail}
title={title}
storageData={state.storage}
localizationData={state.localization}
dispatch={dispatch}
conf={conf}
osRelease={osRelease}
/>
</WithDialogs>
</AddressContext.Provider>
</Page>)
: (<Page>{null}</Page>)}
</SystemTypeContext.Provider>
</OsReleaseContext.Provider>
);
Expand Down

0 comments on commit 3839b45

Please sign in to comment.