From a4f0fb9e254ddbebb141640c1030e29827cfe09b Mon Sep 17 00:00:00 2001 From: f0x Date: Fri, 13 Jan 2023 23:56:50 +0000 Subject: [PATCH] text-field exports --- .../admin/federation/import-export.js | 35 ++++++++++++------- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/web/source/settings/admin/federation/import-export.js b/web/source/settings/admin/federation/import-export.js index b4be09506..a11174b1f 100644 --- a/web/source/settings/admin/federation/import-export.js +++ b/web/source/settings/admin/federation/import-export.js @@ -67,6 +67,13 @@ module.exports = function ImportExport() { reader.readAsText(e.target.files[0]); } + React.useEffect(() => { + if (exportResult.isSuccess) { + form.domains.setter(exportResult.data); + } + /* eslint-disable-next-line react-hooks/exhaustive-deps */ + }, [exportResult]); + const [_location, setLocation] = useLocation(); if (updateFromFile) { @@ -98,15 +105,15 @@ module.exports = function ImportExport() { {parseResult.isSuccess && }

Import / Export suspended domains

-
-