1
0
mirror of https://gitlab.nic.cz/turris/reforis/foris-js.git synced 2024-11-12 17:15:35 +01:00

Display actual error within the form.

This commit is contained in:
Maciej Lenartowicz 2020-01-20 16:54:42 +01:00
parent a0a775996e
commit ee33d33738
30 changed files with 165 additions and 156 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "foris",
"version": "3.2.0",
"version": "3.3.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "foris",
"version": "3.2.0",
"version": "3.3.0",
"description": "Set of components and utils for Foris and its plugins.",
"author": "CZ.NIC, z.s.p.o.",
"repository": {

View File

@ -27,7 +27,6 @@ export default function ResetWiFiSettings({ ws, endpoint }) {
const module = "wifi";
ws.subscribe(module)
.bind(module, "reset", () => {
setIsLoading(true);
// eslint-disable-next-line no-restricted-globals
setTimeout(() => location.reload(), 1000);
});
@ -45,6 +44,7 @@ export default function ResetWiFiSettings({ ws, endpoint }) {
function onReset() {
dismissAlert();
setIsLoading(true);
postReset();
}

View File

@ -39,9 +39,10 @@ describe("<WiFiSettings/>", () => {
it("should handle error", async () => {
const webSockets = new WebSockets();
const { getByText } = render(<WiFiSettings ws={webSockets} ws={webSockets} endpoint={endpoint} resetEndpoint="foo" />);
mockJSONError();
const errorMessage = "An API error occurred.";
mockJSONError(errorMessage);
await wait(() => {
expect(getByText("An error occurred while fetching data.")).toBeTruthy();
expect(getByText(errorMessage)).toBeTruthy();
});
});

View File

@ -11,7 +11,6 @@ import { Prompt } from "react-router-dom";
import { ALERT_TYPES } from "../../bootstrap/Alert";
import { API_STATE } from "../../api/utils";
import { ErrorMessage } from "../../utils/ErrorMessage";
import { formFieldsSize } from "../../bootstrap/constants";
import { Spinner } from "../../bootstrap/Spinner";
import { useAlert } from "../../alertContext/AlertContext";
@ -19,6 +18,7 @@ import { useAPIPost } from "../../api/hooks";
import { useForisModule, useForm } from "../hooks";
import { STATES as SUBMIT_BUTTON_STATES, SubmitButton } from "./SubmitButton";
import { ErrorMessage } from "../../utils/ErrorMessage";
ForisForm.propTypes = {
/** Optional WebSocket object. See `scr/common/WebSockets.js`.
@ -91,7 +91,7 @@ export function ForisForm({
children,
}) {
const [formState, onFormChangeHandler, resetFormData] = useForm(validator, prepData);
const [setAlert] = useAlert();
const [setAlert, dismissAlert] = useAlert();
const [forisModuleState] = useForisModule(ws, forisConfig);
useEffect(() => {
@ -111,7 +111,7 @@ export function ForisForm({
}, [postCallback, postState.state, postState.data, setAlert]);
if (forisModuleState.state === API_STATE.ERROR) {
return <ErrorMessage />;
return <ErrorMessage message={forisModuleState.data} />;
}
if (!formState.data) {
return <Spinner />;
@ -120,6 +120,7 @@ export function ForisForm({
function onSubmitHandler(event) {
event.preventDefault();
resetFormData();
dismissAlert();
const copiedFormData = JSON.parse(JSON.stringify(formState.data));
const preparedData = prepDataToSubmit(copiedFormData);
post({ data: preparedData });

View File

@ -6,11 +6,18 @@
*/
import React from "react";
import PropTypes from "prop-types";
export function ErrorMessage() {
ErrorMessage.propTypes = {
message: PropTypes.string,
};
ErrorMessage.defaultProps = {
message: _("An error occurred while fetching data."),
};
export function ErrorMessage({ message }) {
return (
<p className="text-center text-danger">
{_("An error occurred while fetching data.")}
</p>
<p className="text-center text-danger">{message}</p>
);
}

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-01-13 13:09+0100\n"
"POT-Creation-Date: 2020-01-20 16:26+0100\n"
"PO-Revision-Date: 2019-09-29 15:56+0000\n"
"Last-Translator: Pavel Borecki <pavel.borecki@gmail.com>\n"
"Language: cs\n"
@ -91,11 +91,11 @@ msgstr ""
msgid "Confirm reboot"
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:40
#: src/common/WiFiSettings/ResetWiFiSettings.js:39
msgid "An error occurred during resetting Wi-Fi settings."
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:42
#: src/common/WiFiSettings/ResetWiFiSettings.js:41
msgid "Wi-Fi settings are set to defaults."
msgstr ""
@ -251,11 +251,11 @@ msgstr ""
"hosty“.\n"
" "
#: src/form/components/ForisForm.js:102
#: src/form/components/ForisForm.js:107
msgid "Settings saved successfully"
msgstr "Nastavení úspěšně uložena"
#: src/form/components/ForisForm.js:154
#: src/form/components/ForisForm.js:160
msgid "Changes you made may not be saved. Are you sure you want to leave?"
msgstr ""
"Změny, které byly provedeny, nebyly uloženy. Jste si jistý, že chcete "
@ -273,7 +273,7 @@ msgstr "Načítám nastavení"
msgid "Save"
msgstr "Uložit"
#: src/utils/ErrorMessage.js:13
#: src/utils/ErrorMessage.js:16
msgid "An error occurred while fetching data."
msgstr "Došlo k chybě při získávání dat."

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-01-13 13:09+0100\n"
"POT-Creation-Date: 2020-01-20 16:26+0100\n"
"PO-Revision-Date: 2019-02-19 13:34+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: da\n"
@ -90,11 +90,11 @@ msgstr ""
msgid "Confirm reboot"
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:40
#: src/common/WiFiSettings/ResetWiFiSettings.js:39
msgid "An error occurred during resetting Wi-Fi settings."
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:42
#: src/common/WiFiSettings/ResetWiFiSettings.js:41
msgid "Wi-Fi settings are set to defaults."
msgstr ""
@ -223,11 +223,11 @@ msgid ""
" "
msgstr ""
#: src/form/components/ForisForm.js:102
#: src/form/components/ForisForm.js:107
msgid "Settings saved successfully"
msgstr ""
#: src/form/components/ForisForm.js:154
#: src/form/components/ForisForm.js:160
msgid "Changes you made may not be saved. Are you sure you want to leave?"
msgstr ""
@ -243,7 +243,7 @@ msgstr ""
msgid "Save"
msgstr ""
#: src/utils/ErrorMessage.js:13
#: src/utils/ErrorMessage.js:16
msgid "An error occurred while fetching data."
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-01-13 13:09+0100\n"
"POT-Creation-Date: 2020-01-20 16:26+0100\n"
"PO-Revision-Date: 2019-09-02 07:21+0000\n"
"Last-Translator: Ulrich Günther <mail@ulrich-guenther.at>\n"
"Language: de\n"
@ -92,11 +92,11 @@ msgstr ""
msgid "Confirm reboot"
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:40
#: src/common/WiFiSettings/ResetWiFiSettings.js:39
msgid "An error occurred during resetting Wi-Fi settings."
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:42
#: src/common/WiFiSettings/ResetWiFiSettings.js:41
msgid "Wi-Fi settings are set to defaults."
msgstr ""
@ -253,11 +253,11 @@ msgstr ""
"Gastnetzwerk eingestellt werden.\n"
" "
#: src/form/components/ForisForm.js:102
#: src/form/components/ForisForm.js:107
msgid "Settings saved successfully"
msgstr ""
#: src/form/components/ForisForm.js:154
#: src/form/components/ForisForm.js:160
msgid "Changes you made may not be saved. Are you sure you want to leave?"
msgstr ""
@ -273,7 +273,7 @@ msgstr "Einstellungen laden"
msgid "Save"
msgstr "Speichern"
#: src/utils/ErrorMessage.js:13
#: src/utils/ErrorMessage.js:16
msgid "An error occurred while fetching data."
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-01-13 13:09+0100\n"
"POT-Creation-Date: 2020-01-20 16:26+0100\n"
"PO-Revision-Date: 2019-02-19 13:34+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: el\n"
@ -90,11 +90,11 @@ msgstr ""
msgid "Confirm reboot"
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:40
#: src/common/WiFiSettings/ResetWiFiSettings.js:39
msgid "An error occurred during resetting Wi-Fi settings."
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:42
#: src/common/WiFiSettings/ResetWiFiSettings.js:41
msgid "Wi-Fi settings are set to defaults."
msgstr ""
@ -223,11 +223,11 @@ msgid ""
" "
msgstr ""
#: src/form/components/ForisForm.js:102
#: src/form/components/ForisForm.js:107
msgid "Settings saved successfully"
msgstr ""
#: src/form/components/ForisForm.js:154
#: src/form/components/ForisForm.js:160
msgid "Changes you made may not be saved. Are you sure you want to leave?"
msgstr ""
@ -243,7 +243,7 @@ msgstr ""
msgid "Save"
msgstr ""
#: src/utils/ErrorMessage.js:13
#: src/utils/ErrorMessage.js:16
msgid "An error occurred while fetching data."
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-01-13 13:09+0100\n"
"POT-Creation-Date: 2020-01-20 16:26+0100\n"
"PO-Revision-Date: 2019-10-17 09:28+0000\n"
"Last-Translator: Scott Anecito <scott.anecito@protonmail.com>\n"
"Language: en\n"
@ -91,11 +91,11 @@ msgstr ""
msgid "Confirm reboot"
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:40
#: src/common/WiFiSettings/ResetWiFiSettings.js:39
msgid "An error occurred during resetting Wi-Fi settings."
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:42
#: src/common/WiFiSettings/ResetWiFiSettings.js:41
msgid "Wi-Fi settings are set to defaults."
msgstr ""
@ -248,11 +248,11 @@ msgstr ""
"tab.\n"
" "
#: src/form/components/ForisForm.js:102
#: src/form/components/ForisForm.js:107
msgid "Settings saved successfully"
msgstr ""
#: src/form/components/ForisForm.js:154
#: src/form/components/ForisForm.js:160
msgid "Changes you made may not be saved. Are you sure you want to leave?"
msgstr ""
@ -268,7 +268,7 @@ msgstr "Load settings"
msgid "Save"
msgstr "Save"
#: src/utils/ErrorMessage.js:13
#: src/utils/ErrorMessage.js:16
msgid "An error occurred while fetching data."
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-01-13 13:09+0100\n"
"POT-Creation-Date: 2020-01-20 16:26+0100\n"
"PO-Revision-Date: 2019-10-29 06:53+0000\n"
"Last-Translator: Adolfo Jayme Barrientos <fitojb@ubuntu.com>\n"
"Language: es\n"
@ -92,11 +92,11 @@ msgstr "Cancelar"
msgid "Confirm reboot"
msgstr "Confirmar reinicio"
#: src/common/WiFiSettings/ResetWiFiSettings.js:40
#: src/common/WiFiSettings/ResetWiFiSettings.js:39
msgid "An error occurred during resetting Wi-Fi settings."
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:42
#: src/common/WiFiSettings/ResetWiFiSettings.js:41
msgid "Wi-Fi settings are set to defaults."
msgstr ""
@ -225,11 +225,11 @@ msgid ""
" "
msgstr ""
#: src/form/components/ForisForm.js:102
#: src/form/components/ForisForm.js:107
msgid "Settings saved successfully"
msgstr ""
#: src/form/components/ForisForm.js:154
#: src/form/components/ForisForm.js:160
msgid "Changes you made may not be saved. Are you sure you want to leave?"
msgstr ""
@ -247,7 +247,7 @@ msgstr "Configuración de LAN"
msgid "Save"
msgstr ""
#: src/utils/ErrorMessage.js:13
#: src/utils/ErrorMessage.js:16
msgid "An error occurred while fetching data."
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-01-13 13:09+0100\n"
"POT-Creation-Date: 2020-01-20 16:26+0100\n"
"PO-Revision-Date: 2019-02-19 13:34+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: fi\n"
@ -90,11 +90,11 @@ msgstr ""
msgid "Confirm reboot"
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:40
#: src/common/WiFiSettings/ResetWiFiSettings.js:39
msgid "An error occurred during resetting Wi-Fi settings."
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:42
#: src/common/WiFiSettings/ResetWiFiSettings.js:41
msgid "Wi-Fi settings are set to defaults."
msgstr ""
@ -223,11 +223,11 @@ msgid ""
" "
msgstr ""
#: src/form/components/ForisForm.js:102
#: src/form/components/ForisForm.js:107
msgid "Settings saved successfully"
msgstr ""
#: src/form/components/ForisForm.js:154
#: src/form/components/ForisForm.js:160
msgid "Changes you made may not be saved. Are you sure you want to leave?"
msgstr ""
@ -243,7 +243,7 @@ msgstr ""
msgid "Save"
msgstr ""
#: src/utils/ErrorMessage.js:13
#: src/utils/ErrorMessage.js:16
msgid "An error occurred while fetching data."
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-01-13 13:09+0100\n"
"POT-Creation-Date: 2020-01-20 16:26+0100\n"
"PO-Revision-Date: 2019-02-19 13:34+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: fo\n"
@ -90,11 +90,11 @@ msgstr ""
msgid "Confirm reboot"
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:40
#: src/common/WiFiSettings/ResetWiFiSettings.js:39
msgid "An error occurred during resetting Wi-Fi settings."
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:42
#: src/common/WiFiSettings/ResetWiFiSettings.js:41
msgid "Wi-Fi settings are set to defaults."
msgstr ""
@ -223,11 +223,11 @@ msgid ""
" "
msgstr ""
#: src/form/components/ForisForm.js:102
#: src/form/components/ForisForm.js:107
msgid "Settings saved successfully"
msgstr ""
#: src/form/components/ForisForm.js:154
#: src/form/components/ForisForm.js:160
msgid "Changes you made may not be saved. Are you sure you want to leave?"
msgstr ""
@ -243,7 +243,7 @@ msgstr ""
msgid "Save"
msgstr ""
#: src/utils/ErrorMessage.js:13
#: src/utils/ErrorMessage.js:16
msgid "An error occurred while fetching data."
msgstr ""

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-01-13 13:09+0100\n"
"POT-Creation-Date: 2020-01-20 16:26+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -89,11 +89,11 @@ msgstr ""
msgid "Confirm reboot"
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:40
#: src/common/WiFiSettings/ResetWiFiSettings.js:39
msgid "An error occurred during resetting Wi-Fi settings."
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:42
#: src/common/WiFiSettings/ResetWiFiSettings.js:41
msgid "Wi-Fi settings are set to defaults."
msgstr ""
@ -222,11 +222,11 @@ msgid ""
" "
msgstr ""
#: src/form/components/ForisForm.js:102
#: src/form/components/ForisForm.js:107
msgid "Settings saved successfully"
msgstr ""
#: src/form/components/ForisForm.js:154
#: src/form/components/ForisForm.js:160
msgid "Changes you made may not be saved. Are you sure you want to leave?"
msgstr ""
@ -242,7 +242,7 @@ msgstr ""
msgid "Save"
msgstr ""
#: src/utils/ErrorMessage.js:13
#: src/utils/ErrorMessage.js:16
msgid "An error occurred while fetching data."
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-01-13 13:09+0100\n"
"POT-Creation-Date: 2020-01-20 16:26+0100\n"
"PO-Revision-Date: 2019-10-14 11:04+0000\n"
"Last-Translator: ButterflyOfFire <ButterflyOfFire@protonmail.com>\n"
"Language: fr\n"
@ -94,11 +94,11 @@ msgstr ""
msgid "Confirm reboot"
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:40
#: src/common/WiFiSettings/ResetWiFiSettings.js:39
msgid "An error occurred during resetting Wi-Fi settings."
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:42
#: src/common/WiFiSettings/ResetWiFiSettings.js:41
msgid "Wi-Fi settings are set to defaults."
msgstr ""
@ -227,11 +227,11 @@ msgid ""
" "
msgstr ""
#: src/form/components/ForisForm.js:102
#: src/form/components/ForisForm.js:107
msgid "Settings saved successfully"
msgstr ""
#: src/form/components/ForisForm.js:154
#: src/form/components/ForisForm.js:160
msgid "Changes you made may not be saved. Are you sure you want to leave?"
msgstr ""
@ -247,7 +247,7 @@ msgstr "Charger les paramètres"
msgid "Save"
msgstr "Enregistrer"
#: src/utils/ErrorMessage.js:13
#: src/utils/ErrorMessage.js:16
msgid "An error occurred while fetching data."
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-01-13 13:09+0100\n"
"POT-Creation-Date: 2020-01-20 16:26+0100\n"
"PO-Revision-Date: 2019-02-19 13:34+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: hr\n"
@ -91,11 +91,11 @@ msgstr ""
msgid "Confirm reboot"
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:40
#: src/common/WiFiSettings/ResetWiFiSettings.js:39
msgid "An error occurred during resetting Wi-Fi settings."
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:42
#: src/common/WiFiSettings/ResetWiFiSettings.js:41
msgid "Wi-Fi settings are set to defaults."
msgstr ""
@ -224,11 +224,11 @@ msgid ""
" "
msgstr ""
#: src/form/components/ForisForm.js:102
#: src/form/components/ForisForm.js:107
msgid "Settings saved successfully"
msgstr ""
#: src/form/components/ForisForm.js:154
#: src/form/components/ForisForm.js:160
msgid "Changes you made may not be saved. Are you sure you want to leave?"
msgstr ""
@ -244,7 +244,7 @@ msgstr ""
msgid "Save"
msgstr ""
#: src/utils/ErrorMessage.js:13
#: src/utils/ErrorMessage.js:16
msgid "An error occurred while fetching data."
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-01-13 13:09+0100\n"
"POT-Creation-Date: 2020-01-20 16:26+0100\n"
"PO-Revision-Date: 2019-02-19 13:34+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: hu\n"
@ -90,11 +90,11 @@ msgstr ""
msgid "Confirm reboot"
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:40
#: src/common/WiFiSettings/ResetWiFiSettings.js:39
msgid "An error occurred during resetting Wi-Fi settings."
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:42
#: src/common/WiFiSettings/ResetWiFiSettings.js:41
msgid "Wi-Fi settings are set to defaults."
msgstr ""
@ -223,11 +223,11 @@ msgid ""
" "
msgstr ""
#: src/form/components/ForisForm.js:102
#: src/form/components/ForisForm.js:107
msgid "Settings saved successfully"
msgstr ""
#: src/form/components/ForisForm.js:154
#: src/form/components/ForisForm.js:160
msgid "Changes you made may not be saved. Are you sure you want to leave?"
msgstr ""
@ -243,7 +243,7 @@ msgstr ""
msgid "Save"
msgstr ""
#: src/utils/ErrorMessage.js:13
#: src/utils/ErrorMessage.js:16
msgid "An error occurred while fetching data."
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-01-13 13:09+0100\n"
"POT-Creation-Date: 2020-01-20 16:26+0100\n"
"PO-Revision-Date: 2019-02-19 13:34+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: it\n"
@ -90,11 +90,11 @@ msgstr ""
msgid "Confirm reboot"
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:40
#: src/common/WiFiSettings/ResetWiFiSettings.js:39
msgid "An error occurred during resetting Wi-Fi settings."
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:42
#: src/common/WiFiSettings/ResetWiFiSettings.js:41
msgid "Wi-Fi settings are set to defaults."
msgstr ""
@ -223,11 +223,11 @@ msgid ""
" "
msgstr ""
#: src/form/components/ForisForm.js:102
#: src/form/components/ForisForm.js:107
msgid "Settings saved successfully"
msgstr ""
#: src/form/components/ForisForm.js:154
#: src/form/components/ForisForm.js:160
msgid "Changes you made may not be saved. Are you sure you want to leave?"
msgstr ""
@ -243,7 +243,7 @@ msgstr ""
msgid "Save"
msgstr ""
#: src/utils/ErrorMessage.js:13
#: src/utils/ErrorMessage.js:16
msgid "An error occurred while fetching data."
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-01-13 13:09+0100\n"
"POT-Creation-Date: 2020-01-20 16:26+0100\n"
"PO-Revision-Date: 2019-10-16 10:08+0000\n"
"Last-Translator: Scott Anecito <scott.anecito@protonmail.com>\n"
"Language: ja\n"
@ -91,11 +91,11 @@ msgstr ""
msgid "Confirm reboot"
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:40
#: src/common/WiFiSettings/ResetWiFiSettings.js:39
msgid "An error occurred during resetting Wi-Fi settings."
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:42
#: src/common/WiFiSettings/ResetWiFiSettings.js:41
msgid "Wi-Fi settings are set to defaults."
msgstr ""
@ -224,11 +224,11 @@ msgid ""
" "
msgstr ""
#: src/form/components/ForisForm.js:102
#: src/form/components/ForisForm.js:107
msgid "Settings saved successfully"
msgstr ""
#: src/form/components/ForisForm.js:154
#: src/form/components/ForisForm.js:160
msgid "Changes you made may not be saved. Are you sure you want to leave?"
msgstr ""
@ -244,7 +244,7 @@ msgstr ""
msgid "Save"
msgstr ""
#: src/utils/ErrorMessage.js:13
#: src/utils/ErrorMessage.js:16
msgid "An error occurred while fetching data."
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-01-13 13:09+0100\n"
"POT-Creation-Date: 2020-01-20 16:26+0100\n"
"PO-Revision-Date: 2019-02-19 13:34+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: ko\n"
@ -90,11 +90,11 @@ msgstr ""
msgid "Confirm reboot"
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:40
#: src/common/WiFiSettings/ResetWiFiSettings.js:39
msgid "An error occurred during resetting Wi-Fi settings."
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:42
#: src/common/WiFiSettings/ResetWiFiSettings.js:41
msgid "Wi-Fi settings are set to defaults."
msgstr ""
@ -223,11 +223,11 @@ msgid ""
" "
msgstr ""
#: src/form/components/ForisForm.js:102
#: src/form/components/ForisForm.js:107
msgid "Settings saved successfully"
msgstr ""
#: src/form/components/ForisForm.js:154
#: src/form/components/ForisForm.js:160
msgid "Changes you made may not be saved. Are you sure you want to leave?"
msgstr ""
@ -243,7 +243,7 @@ msgstr ""
msgid "Save"
msgstr ""
#: src/utils/ErrorMessage.js:13
#: src/utils/ErrorMessage.js:16
msgid "An error occurred while fetching data."
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-01-13 13:09+0100\n"
"POT-Creation-Date: 2020-01-20 16:26+0100\n"
"PO-Revision-Date: 2019-02-19 13:34+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: lt\n"
@ -91,11 +91,11 @@ msgstr ""
msgid "Confirm reboot"
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:40
#: src/common/WiFiSettings/ResetWiFiSettings.js:39
msgid "An error occurred during resetting Wi-Fi settings."
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:42
#: src/common/WiFiSettings/ResetWiFiSettings.js:41
msgid "Wi-Fi settings are set to defaults."
msgstr ""
@ -224,11 +224,11 @@ msgid ""
" "
msgstr ""
#: src/form/components/ForisForm.js:102
#: src/form/components/ForisForm.js:107
msgid "Settings saved successfully"
msgstr ""
#: src/form/components/ForisForm.js:154
#: src/form/components/ForisForm.js:160
msgid "Changes you made may not be saved. Are you sure you want to leave?"
msgstr ""
@ -244,7 +244,7 @@ msgstr ""
msgid "Save"
msgstr ""
#: src/utils/ErrorMessage.js:13
#: src/utils/ErrorMessage.js:16
msgid "An error occurred while fetching data."
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-01-13 13:09+0100\n"
"POT-Creation-Date: 2020-01-20 16:26+0100\n"
"PO-Revision-Date: 2019-11-10 16:04+0000\n"
"Last-Translator: Allan Nordhøy <epost@anotheragency.no>\n"
"Language: nb\n"
@ -92,11 +92,11 @@ msgstr ""
msgid "Confirm reboot"
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:40
#: src/common/WiFiSettings/ResetWiFiSettings.js:39
msgid "An error occurred during resetting Wi-Fi settings."
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:42
#: src/common/WiFiSettings/ResetWiFiSettings.js:41
msgid "Wi-Fi settings are set to defaults."
msgstr ""
@ -250,11 +250,11 @@ msgstr ""
"\n"
" "
#: src/form/components/ForisForm.js:102
#: src/form/components/ForisForm.js:107
msgid "Settings saved successfully"
msgstr ""
#: src/form/components/ForisForm.js:154
#: src/form/components/ForisForm.js:160
msgid "Changes you made may not be saved. Are you sure you want to leave?"
msgstr ""
@ -270,7 +270,7 @@ msgstr "Last inn innstillinger"
msgid "Save"
msgstr "Lagre"
#: src/utils/ErrorMessage.js:13
#: src/utils/ErrorMessage.js:16
msgid "An error occurred while fetching data."
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-01-13 13:09+0100\n"
"POT-Creation-Date: 2020-01-20 16:26+0100\n"
"PO-Revision-Date: 2019-08-28 17:55+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: nb_NO\n"
@ -90,11 +90,11 @@ msgstr ""
msgid "Confirm reboot"
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:40
#: src/common/WiFiSettings/ResetWiFiSettings.js:39
msgid "An error occurred during resetting Wi-Fi settings."
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:42
#: src/common/WiFiSettings/ResetWiFiSettings.js:41
msgid "Wi-Fi settings are set to defaults."
msgstr ""
@ -223,11 +223,11 @@ msgid ""
" "
msgstr ""
#: src/form/components/ForisForm.js:102
#: src/form/components/ForisForm.js:107
msgid "Settings saved successfully"
msgstr ""
#: src/form/components/ForisForm.js:154
#: src/form/components/ForisForm.js:160
msgid "Changes you made may not be saved. Are you sure you want to leave?"
msgstr ""
@ -243,7 +243,7 @@ msgstr ""
msgid "Save"
msgstr ""
#: src/utils/ErrorMessage.js:13
#: src/utils/ErrorMessage.js:16
msgid "An error occurred while fetching data."
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-01-13 13:09+0100\n"
"POT-Creation-Date: 2020-01-20 16:26+0100\n"
"PO-Revision-Date: 2019-10-15 13:02+0000\n"
"Last-Translator: powerburner-nl <peter.mulder.1981@gmail.com>\n"
"Language: nl\n"
@ -92,11 +92,11 @@ msgstr ""
msgid "Confirm reboot"
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:40
#: src/common/WiFiSettings/ResetWiFiSettings.js:39
msgid "An error occurred during resetting Wi-Fi settings."
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:42
#: src/common/WiFiSettings/ResetWiFiSettings.js:41
msgid "Wi-Fi settings are set to defaults."
msgstr ""
@ -225,11 +225,11 @@ msgid ""
" "
msgstr ""
#: src/form/components/ForisForm.js:102
#: src/form/components/ForisForm.js:107
msgid "Settings saved successfully"
msgstr ""
#: src/form/components/ForisForm.js:154
#: src/form/components/ForisForm.js:160
msgid "Changes you made may not be saved. Are you sure you want to leave?"
msgstr ""
@ -245,7 +245,7 @@ msgstr "Instellingen laden"
msgid "Save"
msgstr "Opslaan"
#: src/utils/ErrorMessage.js:13
#: src/utils/ErrorMessage.js:16
msgid "An error occurred while fetching data."
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-01-13 13:09+0100\n"
"POT-Creation-Date: 2020-01-20 16:26+0100\n"
"PO-Revision-Date: 2019-08-28 17:56+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: pl\n"
@ -92,11 +92,11 @@ msgstr ""
msgid "Confirm reboot"
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:40
#: src/common/WiFiSettings/ResetWiFiSettings.js:39
msgid "An error occurred during resetting Wi-Fi settings."
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:42
#: src/common/WiFiSettings/ResetWiFiSettings.js:41
msgid "Wi-Fi settings are set to defaults."
msgstr ""
@ -225,11 +225,11 @@ msgid ""
" "
msgstr ""
#: src/form/components/ForisForm.js:102
#: src/form/components/ForisForm.js:107
msgid "Settings saved successfully"
msgstr ""
#: src/form/components/ForisForm.js:154
#: src/form/components/ForisForm.js:160
msgid "Changes you made may not be saved. Are you sure you want to leave?"
msgstr ""
@ -245,7 +245,7 @@ msgstr ""
msgid "Save"
msgstr "Zapisz"
#: src/utils/ErrorMessage.js:13
#: src/utils/ErrorMessage.js:16
msgid "An error occurred while fetching data."
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-01-13 13:09+0100\n"
"POT-Creation-Date: 2020-01-20 16:26+0100\n"
"PO-Revision-Date: 2019-02-19 13:35+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: ro\n"
@ -91,11 +91,11 @@ msgstr ""
msgid "Confirm reboot"
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:40
#: src/common/WiFiSettings/ResetWiFiSettings.js:39
msgid "An error occurred during resetting Wi-Fi settings."
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:42
#: src/common/WiFiSettings/ResetWiFiSettings.js:41
msgid "Wi-Fi settings are set to defaults."
msgstr ""
@ -224,11 +224,11 @@ msgid ""
" "
msgstr ""
#: src/form/components/ForisForm.js:102
#: src/form/components/ForisForm.js:107
msgid "Settings saved successfully"
msgstr ""
#: src/form/components/ForisForm.js:154
#: src/form/components/ForisForm.js:160
msgid "Changes you made may not be saved. Are you sure you want to leave?"
msgstr ""
@ -244,7 +244,7 @@ msgstr ""
msgid "Save"
msgstr ""
#: src/utils/ErrorMessage.js:13
#: src/utils/ErrorMessage.js:16
msgid "An error occurred while fetching data."
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-01-13 13:09+0100\n"
"POT-Creation-Date: 2020-01-20 16:26+0100\n"
"PO-Revision-Date: 2019-09-30 13:00+0000\n"
"Last-Translator: Алексей Леньшин <alenshin@gmail.com>\n"
"Language: ru\n"
@ -93,11 +93,11 @@ msgstr ""
msgid "Confirm reboot"
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:40
#: src/common/WiFiSettings/ResetWiFiSettings.js:39
msgid "An error occurred during resetting Wi-Fi settings."
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:42
#: src/common/WiFiSettings/ResetWiFiSettings.js:41
msgid "Wi-Fi settings are set to defaults."
msgstr ""
@ -250,11 +250,11 @@ msgstr ""
"Гостевая сеть.\n"
" "
#: src/form/components/ForisForm.js:102
#: src/form/components/ForisForm.js:107
msgid "Settings saved successfully"
msgstr ""
#: src/form/components/ForisForm.js:154
#: src/form/components/ForisForm.js:160
msgid "Changes you made may not be saved. Are you sure you want to leave?"
msgstr ""
@ -270,7 +270,7 @@ msgstr "Загрузить настройки"
msgid "Save"
msgstr "Сохранить"
#: src/utils/ErrorMessage.js:13
#: src/utils/ErrorMessage.js:16
msgid "An error occurred while fetching data."
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-01-13 13:09+0100\n"
"POT-Creation-Date: 2020-01-20 16:26+0100\n"
"PO-Revision-Date: 2019-08-28 17:56+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: sk\n"
@ -90,11 +90,11 @@ msgstr ""
msgid "Confirm reboot"
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:40
#: src/common/WiFiSettings/ResetWiFiSettings.js:39
msgid "An error occurred during resetting Wi-Fi settings."
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:42
#: src/common/WiFiSettings/ResetWiFiSettings.js:41
msgid "Wi-Fi settings are set to defaults."
msgstr ""
@ -223,11 +223,11 @@ msgid ""
" "
msgstr ""
#: src/form/components/ForisForm.js:102
#: src/form/components/ForisForm.js:107
msgid "Settings saved successfully"
msgstr ""
#: src/form/components/ForisForm.js:154
#: src/form/components/ForisForm.js:160
msgid "Changes you made may not be saved. Are you sure you want to leave?"
msgstr ""
@ -243,7 +243,7 @@ msgstr ""
msgid "Save"
msgstr ""
#: src/utils/ErrorMessage.js:13
#: src/utils/ErrorMessage.js:16
msgid "An error occurred while fetching data."
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-01-13 13:09+0100\n"
"POT-Creation-Date: 2020-01-20 16:26+0100\n"
"PO-Revision-Date: 2019-08-28 17:56+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: sv\n"
@ -90,11 +90,11 @@ msgstr ""
msgid "Confirm reboot"
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:40
#: src/common/WiFiSettings/ResetWiFiSettings.js:39
msgid "An error occurred during resetting Wi-Fi settings."
msgstr ""
#: src/common/WiFiSettings/ResetWiFiSettings.js:42
#: src/common/WiFiSettings/ResetWiFiSettings.js:41
msgid "Wi-Fi settings are set to defaults."
msgstr ""
@ -223,11 +223,11 @@ msgid ""
" "
msgstr ""
#: src/form/components/ForisForm.js:102
#: src/form/components/ForisForm.js:107
msgid "Settings saved successfully"
msgstr ""
#: src/form/components/ForisForm.js:154
#: src/form/components/ForisForm.js:160
msgid "Changes you made may not be saved. Are you sure you want to leave?"
msgstr ""
@ -243,7 +243,7 @@ msgstr ""
msgid "Save"
msgstr "Spara"
#: src/utils/ErrorMessage.js:13
#: src/utils/ErrorMessage.js:16
msgid "An error occurred while fetching data."
msgstr ""