Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo committed May 24, 2024
1 parent c6450b1 commit 6505b8a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion apps/meteor/client/views/root/AppErrorPage.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Box, States, StatesIcon, StatesSubtitle, StatesTitle } from '@rocket.chat/fuselage';
import { Box, States, StatesAction, StatesActions, StatesIcon, StatesSubtitle, StatesTitle } from '@rocket.chat/fuselage';
import type { ErrorInfo, ReactElement } from 'react';
import React from 'react';

Expand All @@ -15,6 +15,17 @@ const AppErrorPage = (_props: AppErrorPageProps): ReactElement => {
<StatesIcon name='error-circle' />
<StatesTitle>Application Error</StatesTitle>
<StatesSubtitle>The application GUI just crashed.</StatesSubtitle>

<StatesActions>
<StatesAction
onClick={() => {
indexedDB.deleteDatabase('MeteorDynamicImportCache');
window.location.reload();
}}
>
Reload Application
</StatesAction>
</StatesActions>
</States>
</Box>
);
Expand Down

0 comments on commit 6505b8a

Please sign in to comment.