Skip to content

Commit 26704a2

Browse files
committed
Clear reinstall messages when mounting; closes pterodactyl#2213
1 parent 941da82 commit 26704a2

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

resources/scripts/components/server/settings/ReinstallServerBox.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useState } from 'react';
1+
import React, { useEffect, useState } from 'react';
22
import { ServerContext } from '@/state/server';
33
import TitledGreyBox from '@/components/elements/TitledGreyBox';
44
import ConfirmationModal from '@/components/elements/ConfirmationModal';
@@ -37,6 +37,10 @@ export default () => {
3737
});
3838
};
3939

40+
useEffect(() => {
41+
clearFlashes();
42+
}, []);
43+
4044
return (
4145
<TitledGreyBox title={'Reinstall Server'} css={tw`relative`}>
4246
<ConfirmationModal

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5570,6 +5570,11 @@ react-fast-compare@^3.1.1, react-fast-compare@^3.2.0:
55705570
resolved "https://registry.yarnpkg.com/react-fast-compare/-/react-fast-compare-3.2.0.tgz#641a9da81b6a6320f270e89724fb45a0b39e43bb"
55715571
integrity sha512-rtGImPZ0YyLrscKI9xTpV8psd6I8VAtjKCzQDlzyDvqJA8XOW78TXYQwNRNd8g8JZnDu8q9Fu/1v4HPAVwVdHA==
55725572

5573+
react-ga@^3.1.2:
5574+
version "3.1.2"
5575+
resolved "https://registry.yarnpkg.com/react-ga/-/react-ga-3.1.2.tgz#e13f211c51a2e5c401ea69cf094b9501fe3c51ce"
5576+
integrity sha512-OJrMqaHEHbodm+XsnjA6ISBEHTwvpFrxco65mctzl/v3CASMSLSyUkFqz9yYrPDKGBUfNQzKCjuMJwctjlWBbw==
5577+
55735578
react-google-recaptcha@^2.0.1:
55745579
version "2.0.1"
55755580
resolved "https://registry.yarnpkg.com/react-google-recaptcha/-/react-google-recaptcha-2.0.1.tgz#3276b29659493f7ca2a5b7739f6c239293cdf1d8"

0 commit comments

Comments
 (0)