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

Extract reboot button from reForis.

* Add RebootButton tests.
 * RebootButton code review.
 * Update translations.
This commit is contained in:
Bogdan Bodnar 2019-11-27 16:54:37 +01:00
parent fd01bc6f56
commit 04a667eb6f
No known key found for this signature in database
GPG Key ID: 49E4169AD3CA42B0
29 changed files with 1117 additions and 30 deletions

View File

@ -0,0 +1,77 @@
/*
* Copyright (C) 2019 CZ.NIC z.s.p.o. (http://www.nic.cz/)
*
* This is free software, licensed under the GNU General Public License v3.
* See /LICENSE for more information.
*/
import React, { useState, useEffect } from "react";
import PropTypes from "prop-types";
import { useAPIPost } from "api/hooks";
import { API_STATE } from "api/utils";
import { ForisURLs } from "forisUrls";
import { Button } from "bootstrap/Button";
import {
Modal, ModalHeader, ModalBody, ModalFooter,
} from "bootstrap/Modal";
import { useAlert } from "alertContext/AlertContext";
RebootButton.propTypes = {
forisFormSize: PropTypes.bool,
};
export function RebootButton(props) {
const [triggered, setTriggered] = useState(false);
const [modalShown, setModalShown] = useState(false);
const [triggerRebootStatus, triggerReboot] = useAPIPost(ForisURLs.reboot);
const [setAlert] = useAlert();
useEffect(() => {
if (triggerRebootStatus.state === API_STATE.ERROR) {
setAlert(_("Reboot request failed."));
}
});
function rebootHandler() {
setTriggered(true);
triggerReboot();
setModalShown(false);
}
return (
<>
<RebootModal shown={modalShown} setShown={setModalShown} onReboot={rebootHandler} />
<Button
className="btn-danger"
loading={triggered}
disabled={triggered}
onClick={() => setModalShown(true)}
{...props}
>
{_("Reboot")}
</Button>
</>
);
}
RebootModal.propTypes = {
shown: PropTypes.bool.isRequired,
setShown: PropTypes.func.isRequired,
onReboot: PropTypes.func.isRequired,
};
function RebootModal({ shown, setShown, onReboot }) {
return (
<Modal shown={shown} setShown={setShown}>
<ModalHeader setShown={setShown} title={_("Reboot confirmation")} />
<ModalBody><p>{_("Are you sure you want to restart the router?")}</p></ModalBody>
<ModalFooter>
<Button onClick={() => setShown(false)}>{_("Cancel")}</Button>
<Button className="btn-danger" onClick={onReboot}>{_("Confirm reboot")}</Button>
</ModalFooter>
</Modal>
);
}

View File

@ -0,0 +1,55 @@
/*
* Copyright (C) 2019 CZ.NIC z.s.p.o. (http://www.nic.cz/)
*
* This is free software, licensed under the GNU General Public License v3.
* See /LICENSE for more information.
*/
import React from "react";
import { fireEvent, getByText, queryByText, render, wait } from "customTestRender";
import mockAxios from "jest-mock-axios";
import { mockJSONError } from "testUtils/network";
import { mockSetAlert } from "testUtils/alertContextMock";
import { RebootButton } from "../RebootButton";
describe("<RebootButton/>", () => {
let componentContainer;
beforeEach(() => {
const { container } = render(<>
<div id="modal-container"/>
<RebootButton/>
</>);
componentContainer = container;
});
it("Render.", () => {
expect(componentContainer)
.toMatchSnapshot();
});
it("Render modal.", () => {
expect(queryByText(componentContainer, "Confirm reboot"))
.toBeNull();
fireEvent.click(getByText(componentContainer, "Reboot"));
expect(componentContainer)
.toMatchSnapshot();
});
it("Confirm reboot.", () => {
fireEvent.click(getByText(componentContainer, "Reboot"));
fireEvent.click(getByText(componentContainer, "Confirm reboot"));
expect(mockAxios.post)
.toHaveBeenCalledWith("/reforis/api/reboot", undefined, expect.anything());
});
it("Hold error.", async () => {
fireEvent.click(getByText(componentContainer, "Reboot"));
fireEvent.click(getByText(componentContainer, "Confirm reboot"));
mockJSONError();
await wait(() => expect(mockSetAlert)
.toBeCalledWith("Reboot triggering was failed."));
});
});

View File

@ -0,0 +1,94 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`<RebootButton/> Render modal. 1`] = `
<div>
<div
id="modal-container"
>
<div
class="modal fade show"
role="dialog"
>
<div
class="modal-dialog modal-dialog-centered"
role="document"
>
<div
class="modal-content"
>
<div
class="modal-header"
>
<h5
class="modal-title"
>
Reboot confirmation
</h5>
<button
class="close"
type="button"
>
<span
aria-hidden="true"
>
×
</span>
</button>
</div>
<div
class="modal-body"
>
<p>
Are you sure you want to restart the router?
</p>
</div>
<div
class="modal-footer"
>
<button
class="btn btn-primary "
type="button"
>
Cancel
</button>
<button
class="btn btn-danger"
type="button"
>
Confirm reboot
</button>
</div>
</div>
</div>
</div>
</div>
<button
class="btn btn-danger"
type="button"
>
Reboot
</button>
</div>
`;
exports[`<RebootButton/> Render. 1`] = `
<div>
<div
id="modal-container"
/>
<button
class="btn btn-danger"
type="button"
>
Reboot
</button>
</div>
`;

View File

@ -11,6 +11,7 @@ export const ForisURLs = {
login: `${REFORIS_URL_PREFIX}/login`,
static: `${REFORIS_URL_PREFIX}/static/reforis`,
wifi: `${REFORIS_URL_PREFIX}/network-settings/wifi`,
packageManagement: {
updateSettings: `${REFORIS_URL_PREFIX}/package-management/update-settings`,
updates: `${REFORIS_URL_PREFIX}/package-management/updates`,
@ -21,4 +22,7 @@ export const ForisURLs = {
notificationsSettings: "/administration/notifications-settings",
luci: "/cgi-bin/luci",
// API
reboot: `${REFORIS_URL_PREFIX}/api/reboot`,
};

View File

@ -43,6 +43,9 @@ export {
ModalHeader,
} from "bootstrap/Modal";
// Common
export { RebootButton } from "common/RebootButton";
// Form
export { ForisForm } from "form/components/ForisForm";
export { SubmitButton, STATES as SUBMIT_BUTTON_STATES } from "form/components/SubmitButton";

View File

@ -7,17 +7,16 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2019-11-14 11:13+0100\n"
"POT-Creation-Date: 2019-11-29 16:27+0100\n"
"PO-Revision-Date: 2019-11-21 17:04+0000\n"
"Last-Translator: Pavel Borecki <pavel.borecki@gmail.com>\n"
"Language-Team: Czech <https://hosted.weblate.org/projects/turris/foris-js/cs/"
">\n"
"Language: cs\n"
"Language-Team: Czech <https://hosted.weblate.org/projects/turris/foris-"
"js/cs/>\n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
"X-Generator: Weblate 3.10-dev\n"
"Generated-By: Babel 2.7.0\n"
#: src/validations.js:13
@ -68,6 +67,30 @@ msgstr "Došlo k neznámé chybě. Další informace naleznete v konzoli."
msgid "An unknown API error occurred."
msgstr "Došlo k neznámé chybě v aplikačním programovém rozhraní."
#: src/common/RebootButton.js:33
msgid "Reboot request failed."
msgstr ""
#: src/common/RebootButton.js:54
msgid "Reboot"
msgstr ""
#: src/common/RebootButton.js:69
msgid "Reboot confirmation"
msgstr ""
#: src/common/RebootButton.js:70
msgid "Are you sure you want to restart the router?"
msgstr ""
#: src/common/RebootButton.js:72
msgid "Cancel"
msgstr ""
#: src/common/RebootButton.js:73
msgid "Confirm reboot"
msgstr ""
#: src/form/components/ForisForm.js:88
msgid "Settings saved successfully"
msgstr "Nastavení úspěšně uložena"
@ -99,3 +122,16 @@ msgstr "Došlo k chybě při získávání dat."
#~ msgid "Settings update was failed."
#~ msgstr "Ukládání nastavení selhalo."
#~ msgid "Warning!"
#~ msgstr ""
#~ msgid "Reboot triggering was failed."
#~ msgstr ""
#~ msgid "Reboot triggering failed."
#~ msgstr ""
#~ msgid "Reboot requestq failed."
#~ 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: 2019-11-14 11:13+0100\n"
"POT-Creation-Date: 2019-11-29 16:27+0100\n"
"PO-Revision-Date: 2019-08-28 17:54+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: da\n"
@ -66,6 +66,30 @@ msgstr ""
msgid "An unknown API error occurred."
msgstr ""
#: src/common/RebootButton.js:33
msgid "Reboot request failed."
msgstr ""
#: src/common/RebootButton.js:54
msgid "Reboot"
msgstr ""
#: src/common/RebootButton.js:69
msgid "Reboot confirmation"
msgstr ""
#: src/common/RebootButton.js:70
msgid "Are you sure you want to restart the router?"
msgstr ""
#: src/common/RebootButton.js:72
msgid "Cancel"
msgstr ""
#: src/common/RebootButton.js:73
msgid "Confirm reboot"
msgstr ""
#: src/form/components/ForisForm.js:88
msgid "Settings saved successfully"
msgstr ""
@ -96,3 +120,15 @@ msgstr ""
#~ msgid "Settings update was failed."
#~ msgstr ""
#~ msgid "Warning!"
#~ msgstr ""
#~ msgid "Reboot triggering was failed."
#~ msgstr ""
#~ msgid "Reboot triggering failed."
#~ msgstr ""
#~ msgid "Reboot requestq failed."
#~ 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: 2019-11-14 11:13+0100\n"
"POT-Creation-Date: 2019-11-29 16:27+0100\n"
"PO-Revision-Date: 2019-08-28 17:54+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: de\n"
@ -66,6 +66,30 @@ msgstr ""
msgid "An unknown API error occurred."
msgstr ""
#: src/common/RebootButton.js:33
msgid "Reboot request failed."
msgstr ""
#: src/common/RebootButton.js:54
msgid "Reboot"
msgstr ""
#: src/common/RebootButton.js:69
msgid "Reboot confirmation"
msgstr ""
#: src/common/RebootButton.js:70
msgid "Are you sure you want to restart the router?"
msgstr ""
#: src/common/RebootButton.js:72
msgid "Cancel"
msgstr ""
#: src/common/RebootButton.js:73
msgid "Confirm reboot"
msgstr ""
#: src/form/components/ForisForm.js:88
msgid "Settings saved successfully"
msgstr ""
@ -96,3 +120,15 @@ msgstr ""
#~ msgid "Settings update was failed."
#~ msgstr ""
#~ msgid "Warning!"
#~ msgstr ""
#~ msgid "Reboot triggering was failed."
#~ msgstr ""
#~ msgid "Reboot triggering failed."
#~ msgstr ""
#~ msgid "Reboot requestq failed."
#~ 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: 2019-11-14 11:13+0100\n"
"POT-Creation-Date: 2019-11-29 16:27+0100\n"
"PO-Revision-Date: 2019-08-28 17:54+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: el\n"
@ -66,6 +66,30 @@ msgstr ""
msgid "An unknown API error occurred."
msgstr ""
#: src/common/RebootButton.js:33
msgid "Reboot request failed."
msgstr ""
#: src/common/RebootButton.js:54
msgid "Reboot"
msgstr ""
#: src/common/RebootButton.js:69
msgid "Reboot confirmation"
msgstr ""
#: src/common/RebootButton.js:70
msgid "Are you sure you want to restart the router?"
msgstr ""
#: src/common/RebootButton.js:72
msgid "Cancel"
msgstr ""
#: src/common/RebootButton.js:73
msgid "Confirm reboot"
msgstr ""
#: src/form/components/ForisForm.js:88
msgid "Settings saved successfully"
msgstr ""
@ -96,3 +120,15 @@ msgstr ""
#~ msgid "Settings update was failed."
#~ msgstr ""
#~ msgid "Warning!"
#~ msgstr ""
#~ msgid "Reboot triggering was failed."
#~ msgstr ""
#~ msgid "Reboot triggering failed."
#~ msgstr ""
#~ msgid "Reboot requestq failed."
#~ 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: 2019-11-14 11:13+0100\n"
"POT-Creation-Date: 2019-11-29 16:27+0100\n"
"PO-Revision-Date: 2019-08-28 17:21+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: en\n"
@ -66,6 +66,30 @@ msgstr ""
msgid "An unknown API error occurred."
msgstr ""
#: src/common/RebootButton.js:33
msgid "Reboot request failed."
msgstr ""
#: src/common/RebootButton.js:54
msgid "Reboot"
msgstr ""
#: src/common/RebootButton.js:69
msgid "Reboot confirmation"
msgstr ""
#: src/common/RebootButton.js:70
msgid "Are you sure you want to restart the router?"
msgstr ""
#: src/common/RebootButton.js:72
msgid "Cancel"
msgstr ""
#: src/common/RebootButton.js:73
msgid "Confirm reboot"
msgstr ""
#: src/form/components/ForisForm.js:88
msgid "Settings saved successfully"
msgstr ""
@ -96,3 +120,15 @@ msgstr ""
#~ msgid "Settings update was failed."
#~ msgstr ""
#~ msgid "Warning!"
#~ msgstr ""
#~ msgid "Reboot triggering was failed."
#~ msgstr ""
#~ msgid "Reboot triggering failed."
#~ msgstr ""
#~ msgid "Reboot requestq failed."
#~ msgstr ""

View File

@ -1,4 +1,4 @@
# Translations template for PROJECT.
# Spanish translations for PROJECT.
# Copyright (C) 2019 ORGANIZATION
# This file is distributed under the same license as the PROJECT project.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2019.
@ -7,11 +7,12 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2019-11-14 11:13+0100\n"
"POT-Creation-Date: 2019-11-29 16:27+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"Language: es\n"
"Language-Team: none\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
@ -65,6 +66,30 @@ msgstr ""
msgid "An unknown API error occurred."
msgstr ""
#: src/common/RebootButton.js:33
msgid "Reboot request failed."
msgstr ""
#: src/common/RebootButton.js:54
msgid "Reboot"
msgstr ""
#: src/common/RebootButton.js:69
msgid "Reboot confirmation"
msgstr ""
#: src/common/RebootButton.js:70
msgid "Are you sure you want to restart the router?"
msgstr ""
#: src/common/RebootButton.js:72
msgid "Cancel"
msgstr ""
#: src/common/RebootButton.js:73
msgid "Confirm reboot"
msgstr ""
#: src/form/components/ForisForm.js:88
msgid "Settings saved successfully"
msgstr ""
@ -88,3 +113,16 @@ msgstr ""
#: src/utils/ErrorMessage.js:13
msgid "An error occurred while fetching data."
msgstr ""
#~ msgid "Warning!"
#~ msgstr ""
#~ msgid "Reboot triggering was failed."
#~ msgstr ""
#~ msgid "Reboot triggering failed."
#~ msgstr ""
#~ msgid "Reboot requestq failed."
#~ 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: 2019-11-14 11:13+0100\n"
"POT-Creation-Date: 2019-11-29 16:27+0100\n"
"PO-Revision-Date: 2019-08-28 17:54+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: fi\n"
@ -66,6 +66,30 @@ msgstr ""
msgid "An unknown API error occurred."
msgstr ""
#: src/common/RebootButton.js:33
msgid "Reboot request failed."
msgstr ""
#: src/common/RebootButton.js:54
msgid "Reboot"
msgstr ""
#: src/common/RebootButton.js:69
msgid "Reboot confirmation"
msgstr ""
#: src/common/RebootButton.js:70
msgid "Are you sure you want to restart the router?"
msgstr ""
#: src/common/RebootButton.js:72
msgid "Cancel"
msgstr ""
#: src/common/RebootButton.js:73
msgid "Confirm reboot"
msgstr ""
#: src/form/components/ForisForm.js:88
msgid "Settings saved successfully"
msgstr ""
@ -96,3 +120,15 @@ msgstr ""
#~ msgid "Settings update was failed."
#~ msgstr ""
#~ msgid "Warning!"
#~ msgstr ""
#~ msgid "Reboot triggering was failed."
#~ msgstr ""
#~ msgid "Reboot triggering failed."
#~ msgstr ""
#~ msgid "Reboot requestq failed."
#~ 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: 2019-11-14 11:13+0100\n"
"POT-Creation-Date: 2019-11-29 16:27+0100\n"
"PO-Revision-Date: 2019-08-28 17:54+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: fo\n"
@ -66,6 +66,30 @@ msgstr ""
msgid "An unknown API error occurred."
msgstr ""
#: src/common/RebootButton.js:33
msgid "Reboot request failed."
msgstr ""
#: src/common/RebootButton.js:54
msgid "Reboot"
msgstr ""
#: src/common/RebootButton.js:69
msgid "Reboot confirmation"
msgstr ""
#: src/common/RebootButton.js:70
msgid "Are you sure you want to restart the router?"
msgstr ""
#: src/common/RebootButton.js:72
msgid "Cancel"
msgstr ""
#: src/common/RebootButton.js:73
msgid "Confirm reboot"
msgstr ""
#: src/form/components/ForisForm.js:88
msgid "Settings saved successfully"
msgstr ""
@ -96,3 +120,15 @@ msgstr ""
#~ msgid "Settings update was failed."
#~ msgstr ""
#~ msgid "Warning!"
#~ msgstr ""
#~ msgid "Reboot triggering was failed."
#~ msgstr ""
#~ msgid "Reboot triggering failed."
#~ msgstr ""
#~ msgid "Reboot requestq failed."
#~ 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: 2019-11-14 11:13+0100\n"
"POT-Creation-Date: 2019-11-29 16:27+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"
@ -65,6 +65,30 @@ msgstr ""
msgid "An unknown API error occurred."
msgstr ""
#: src/common/RebootButton.js:33
msgid "Reboot request failed."
msgstr ""
#: src/common/RebootButton.js:54
msgid "Reboot"
msgstr ""
#: src/common/RebootButton.js:69
msgid "Reboot confirmation"
msgstr ""
#: src/common/RebootButton.js:70
msgid "Are you sure you want to restart the router?"
msgstr ""
#: src/common/RebootButton.js:72
msgid "Cancel"
msgstr ""
#: src/common/RebootButton.js:73
msgid "Confirm reboot"
msgstr ""
#: src/form/components/ForisForm.js:88
msgid "Settings saved successfully"
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: 2019-11-14 11:13+0100\n"
"POT-Creation-Date: 2019-11-29 16:27+0100\n"
"PO-Revision-Date: 2019-08-28 17:54+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: fr\n"
@ -66,6 +66,30 @@ msgstr ""
msgid "An unknown API error occurred."
msgstr ""
#: src/common/RebootButton.js:33
msgid "Reboot request failed."
msgstr ""
#: src/common/RebootButton.js:54
msgid "Reboot"
msgstr ""
#: src/common/RebootButton.js:69
msgid "Reboot confirmation"
msgstr ""
#: src/common/RebootButton.js:70
msgid "Are you sure you want to restart the router?"
msgstr ""
#: src/common/RebootButton.js:72
msgid "Cancel"
msgstr ""
#: src/common/RebootButton.js:73
msgid "Confirm reboot"
msgstr ""
#: src/form/components/ForisForm.js:88
msgid "Settings saved successfully"
msgstr ""
@ -96,3 +120,15 @@ msgstr ""
#~ msgid "Settings update was failed."
#~ msgstr ""
#~ msgid "Warning!"
#~ msgstr ""
#~ msgid "Reboot triggering was failed."
#~ msgstr ""
#~ msgid "Reboot triggering failed."
#~ msgstr ""
#~ msgid "Reboot requestq failed."
#~ 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: 2019-11-14 11:13+0100\n"
"POT-Creation-Date: 2019-11-29 16:27+0100\n"
"PO-Revision-Date: 2019-08-28 17:55+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: hr\n"
@ -67,6 +67,30 @@ msgstr ""
msgid "An unknown API error occurred."
msgstr ""
#: src/common/RebootButton.js:33
msgid "Reboot request failed."
msgstr ""
#: src/common/RebootButton.js:54
msgid "Reboot"
msgstr ""
#: src/common/RebootButton.js:69
msgid "Reboot confirmation"
msgstr ""
#: src/common/RebootButton.js:70
msgid "Are you sure you want to restart the router?"
msgstr ""
#: src/common/RebootButton.js:72
msgid "Cancel"
msgstr ""
#: src/common/RebootButton.js:73
msgid "Confirm reboot"
msgstr ""
#: src/form/components/ForisForm.js:88
msgid "Settings saved successfully"
msgstr ""
@ -97,3 +121,15 @@ msgstr ""
#~ msgid "Settings update was failed."
#~ msgstr ""
#~ msgid "Warning!"
#~ msgstr ""
#~ msgid "Reboot triggering was failed."
#~ msgstr ""
#~ msgid "Reboot triggering failed."
#~ msgstr ""
#~ msgid "Reboot requestq failed."
#~ 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: 2019-11-14 11:13+0100\n"
"POT-Creation-Date: 2019-11-29 16:27+0100\n"
"PO-Revision-Date: 2019-08-28 17:55+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: hu\n"
@ -66,6 +66,30 @@ msgstr ""
msgid "An unknown API error occurred."
msgstr ""
#: src/common/RebootButton.js:33
msgid "Reboot request failed."
msgstr ""
#: src/common/RebootButton.js:54
msgid "Reboot"
msgstr ""
#: src/common/RebootButton.js:69
msgid "Reboot confirmation"
msgstr ""
#: src/common/RebootButton.js:70
msgid "Are you sure you want to restart the router?"
msgstr ""
#: src/common/RebootButton.js:72
msgid "Cancel"
msgstr ""
#: src/common/RebootButton.js:73
msgid "Confirm reboot"
msgstr ""
#: src/form/components/ForisForm.js:88
msgid "Settings saved successfully"
msgstr ""
@ -96,3 +120,15 @@ msgstr ""
#~ msgid "Settings update was failed."
#~ msgstr ""
#~ msgid "Warning!"
#~ msgstr ""
#~ msgid "Reboot triggering was failed."
#~ msgstr ""
#~ msgid "Reboot triggering failed."
#~ msgstr ""
#~ msgid "Reboot requestq failed."
#~ 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: 2019-11-14 11:13+0100\n"
"POT-Creation-Date: 2019-11-29 16:27+0100\n"
"PO-Revision-Date: 2019-08-28 17:55+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: it\n"
@ -66,6 +66,30 @@ msgstr ""
msgid "An unknown API error occurred."
msgstr ""
#: src/common/RebootButton.js:33
msgid "Reboot request failed."
msgstr ""
#: src/common/RebootButton.js:54
msgid "Reboot"
msgstr ""
#: src/common/RebootButton.js:69
msgid "Reboot confirmation"
msgstr ""
#: src/common/RebootButton.js:70
msgid "Are you sure you want to restart the router?"
msgstr ""
#: src/common/RebootButton.js:72
msgid "Cancel"
msgstr ""
#: src/common/RebootButton.js:73
msgid "Confirm reboot"
msgstr ""
#: src/form/components/ForisForm.js:88
msgid "Settings saved successfully"
msgstr ""
@ -96,3 +120,15 @@ msgstr ""
#~ msgid "Settings update was failed."
#~ msgstr ""
#~ msgid "Warning!"
#~ msgstr ""
#~ msgid "Reboot triggering was failed."
#~ msgstr ""
#~ msgid "Reboot triggering failed."
#~ msgstr ""
#~ msgid "Reboot requestq failed."
#~ 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: 2019-11-14 11:13+0100\n"
"POT-Creation-Date: 2019-11-29 16:27+0100\n"
"PO-Revision-Date: 2019-08-28 17:55+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: ja\n"
@ -66,6 +66,30 @@ msgstr ""
msgid "An unknown API error occurred."
msgstr ""
#: src/common/RebootButton.js:33
msgid "Reboot request failed."
msgstr ""
#: src/common/RebootButton.js:54
msgid "Reboot"
msgstr ""
#: src/common/RebootButton.js:69
msgid "Reboot confirmation"
msgstr ""
#: src/common/RebootButton.js:70
msgid "Are you sure you want to restart the router?"
msgstr ""
#: src/common/RebootButton.js:72
msgid "Cancel"
msgstr ""
#: src/common/RebootButton.js:73
msgid "Confirm reboot"
msgstr ""
#: src/form/components/ForisForm.js:88
msgid "Settings saved successfully"
msgstr ""
@ -96,3 +120,15 @@ msgstr ""
#~ msgid "Settings update was failed."
#~ msgstr ""
#~ msgid "Warning!"
#~ msgstr ""
#~ msgid "Reboot triggering was failed."
#~ msgstr ""
#~ msgid "Reboot triggering failed."
#~ msgstr ""
#~ msgid "Reboot requestq failed."
#~ 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: 2019-11-14 11:13+0100\n"
"POT-Creation-Date: 2019-11-29 16:27+0100\n"
"PO-Revision-Date: 2019-08-28 17:55+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: ko\n"
@ -66,6 +66,30 @@ msgstr ""
msgid "An unknown API error occurred."
msgstr ""
#: src/common/RebootButton.js:33
msgid "Reboot request failed."
msgstr ""
#: src/common/RebootButton.js:54
msgid "Reboot"
msgstr ""
#: src/common/RebootButton.js:69
msgid "Reboot confirmation"
msgstr ""
#: src/common/RebootButton.js:70
msgid "Are you sure you want to restart the router?"
msgstr ""
#: src/common/RebootButton.js:72
msgid "Cancel"
msgstr ""
#: src/common/RebootButton.js:73
msgid "Confirm reboot"
msgstr ""
#: src/form/components/ForisForm.js:88
msgid "Settings saved successfully"
msgstr ""
@ -96,3 +120,15 @@ msgstr ""
#~ msgid "Settings update was failed."
#~ msgstr ""
#~ msgid "Warning!"
#~ msgstr ""
#~ msgid "Reboot triggering was failed."
#~ msgstr ""
#~ msgid "Reboot triggering failed."
#~ msgstr ""
#~ msgid "Reboot requestq failed."
#~ 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: 2019-11-14 11:13+0100\n"
"POT-Creation-Date: 2019-11-29 16:27+0100\n"
"PO-Revision-Date: 2019-08-28 17:55+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: lt\n"
@ -67,6 +67,30 @@ msgstr ""
msgid "An unknown API error occurred."
msgstr ""
#: src/common/RebootButton.js:33
msgid "Reboot request failed."
msgstr ""
#: src/common/RebootButton.js:54
msgid "Reboot"
msgstr ""
#: src/common/RebootButton.js:69
msgid "Reboot confirmation"
msgstr ""
#: src/common/RebootButton.js:70
msgid "Are you sure you want to restart the router?"
msgstr ""
#: src/common/RebootButton.js:72
msgid "Cancel"
msgstr ""
#: src/common/RebootButton.js:73
msgid "Confirm reboot"
msgstr ""
#: src/form/components/ForisForm.js:88
msgid "Settings saved successfully"
msgstr ""
@ -97,3 +121,15 @@ msgstr ""
#~ msgid "Settings update was failed."
#~ msgstr ""
#~ msgid "Warning!"
#~ msgstr ""
#~ msgid "Reboot triggering was failed."
#~ msgstr ""
#~ msgid "Reboot triggering failed."
#~ msgstr ""
#~ msgid "Reboot requestq failed."
#~ 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: 2019-11-14 11:13+0100\n"
"POT-Creation-Date: 2019-11-29 16:27+0100\n"
"PO-Revision-Date: 2019-08-28 17:56+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: nb\n"
@ -66,6 +66,30 @@ msgstr ""
msgid "An unknown API error occurred."
msgstr ""
#: src/common/RebootButton.js:33
msgid "Reboot request failed."
msgstr ""
#: src/common/RebootButton.js:54
msgid "Reboot"
msgstr ""
#: src/common/RebootButton.js:69
msgid "Reboot confirmation"
msgstr ""
#: src/common/RebootButton.js:70
msgid "Are you sure you want to restart the router?"
msgstr ""
#: src/common/RebootButton.js:72
msgid "Cancel"
msgstr ""
#: src/common/RebootButton.js:73
msgid "Confirm reboot"
msgstr ""
#: src/form/components/ForisForm.js:88
msgid "Settings saved successfully"
msgstr ""
@ -96,3 +120,15 @@ msgstr ""
#~ msgid "Settings update was failed."
#~ msgstr ""
#~ msgid "Warning!"
#~ msgstr ""
#~ msgid "Reboot triggering was failed."
#~ msgstr ""
#~ msgid "Reboot triggering failed."
#~ msgstr ""
#~ msgid "Reboot requestq failed."
#~ 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: 2019-11-14 11:13+0100\n"
"POT-Creation-Date: 2019-11-29 16:27+0100\n"
"PO-Revision-Date: 2019-08-28 17:55+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: nb_NO\n"
@ -66,6 +66,30 @@ msgstr ""
msgid "An unknown API error occurred."
msgstr ""
#: src/common/RebootButton.js:33
msgid "Reboot request failed."
msgstr ""
#: src/common/RebootButton.js:54
msgid "Reboot"
msgstr ""
#: src/common/RebootButton.js:69
msgid "Reboot confirmation"
msgstr ""
#: src/common/RebootButton.js:70
msgid "Are you sure you want to restart the router?"
msgstr ""
#: src/common/RebootButton.js:72
msgid "Cancel"
msgstr ""
#: src/common/RebootButton.js:73
msgid "Confirm reboot"
msgstr ""
#: src/form/components/ForisForm.js:88
msgid "Settings saved successfully"
msgstr ""
@ -96,3 +120,15 @@ msgstr ""
#~ msgid "Settings update was failed."
#~ msgstr ""
#~ msgid "Warning!"
#~ msgstr ""
#~ msgid "Reboot triggering was failed."
#~ msgstr ""
#~ msgid "Reboot triggering failed."
#~ msgstr ""
#~ msgid "Reboot requestq failed."
#~ 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: 2019-11-14 11:13+0100\n"
"POT-Creation-Date: 2019-11-29 16:27+0100\n"
"PO-Revision-Date: 2019-08-28 17:56+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: nl\n"
@ -66,6 +66,30 @@ msgstr ""
msgid "An unknown API error occurred."
msgstr ""
#: src/common/RebootButton.js:33
msgid "Reboot request failed."
msgstr ""
#: src/common/RebootButton.js:54
msgid "Reboot"
msgstr ""
#: src/common/RebootButton.js:69
msgid "Reboot confirmation"
msgstr ""
#: src/common/RebootButton.js:70
msgid "Are you sure you want to restart the router?"
msgstr ""
#: src/common/RebootButton.js:72
msgid "Cancel"
msgstr ""
#: src/common/RebootButton.js:73
msgid "Confirm reboot"
msgstr ""
#: src/form/components/ForisForm.js:88
msgid "Settings saved successfully"
msgstr ""
@ -96,3 +120,15 @@ msgstr ""
#~ msgid "Settings update was failed."
#~ msgstr ""
#~ msgid "Warning!"
#~ msgstr ""
#~ msgid "Reboot triggering was failed."
#~ msgstr ""
#~ msgid "Reboot triggering failed."
#~ msgstr ""
#~ msgid "Reboot requestq failed."
#~ 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: 2019-11-14 11:13+0100\n"
"POT-Creation-Date: 2019-11-29 16:27+0100\n"
"PO-Revision-Date: 2019-08-28 17:56+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: pl\n"
@ -67,6 +67,30 @@ msgstr ""
msgid "An unknown API error occurred."
msgstr ""
#: src/common/RebootButton.js:33
msgid "Reboot request failed."
msgstr ""
#: src/common/RebootButton.js:54
msgid "Reboot"
msgstr ""
#: src/common/RebootButton.js:69
msgid "Reboot confirmation"
msgstr ""
#: src/common/RebootButton.js:70
msgid "Are you sure you want to restart the router?"
msgstr ""
#: src/common/RebootButton.js:72
msgid "Cancel"
msgstr ""
#: src/common/RebootButton.js:73
msgid "Confirm reboot"
msgstr ""
#: src/form/components/ForisForm.js:88
msgid "Settings saved successfully"
msgstr ""
@ -97,3 +121,15 @@ msgstr ""
#~ msgid "Settings update was failed."
#~ msgstr ""
#~ msgid "Warning!"
#~ msgstr ""
#~ msgid "Reboot triggering was failed."
#~ msgstr ""
#~ msgid "Reboot triggering failed."
#~ msgstr ""
#~ msgid "Reboot requestq failed."
#~ 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: 2019-11-14 11:13+0100\n"
"POT-Creation-Date: 2019-11-29 16:27+0100\n"
"PO-Revision-Date: 2019-08-28 17:56+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: ro\n"
@ -67,6 +67,30 @@ msgstr ""
msgid "An unknown API error occurred."
msgstr ""
#: src/common/RebootButton.js:33
msgid "Reboot request failed."
msgstr ""
#: src/common/RebootButton.js:54
msgid "Reboot"
msgstr ""
#: src/common/RebootButton.js:69
msgid "Reboot confirmation"
msgstr ""
#: src/common/RebootButton.js:70
msgid "Are you sure you want to restart the router?"
msgstr ""
#: src/common/RebootButton.js:72
msgid "Cancel"
msgstr ""
#: src/common/RebootButton.js:73
msgid "Confirm reboot"
msgstr ""
#: src/form/components/ForisForm.js:88
msgid "Settings saved successfully"
msgstr ""
@ -97,3 +121,15 @@ msgstr ""
#~ msgid "Settings update was failed."
#~ msgstr ""
#~ msgid "Warning!"
#~ msgstr ""
#~ msgid "Reboot triggering was failed."
#~ msgstr ""
#~ msgid "Reboot triggering failed."
#~ msgstr ""
#~ msgid "Reboot requestq failed."
#~ 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: 2019-11-14 11:13+0100\n"
"POT-Creation-Date: 2019-11-29 16:27+0100\n"
"PO-Revision-Date: 2019-08-28 17:56+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: ru\n"
@ -67,6 +67,30 @@ msgstr ""
msgid "An unknown API error occurred."
msgstr ""
#: src/common/RebootButton.js:33
msgid "Reboot request failed."
msgstr ""
#: src/common/RebootButton.js:54
msgid "Reboot"
msgstr ""
#: src/common/RebootButton.js:69
msgid "Reboot confirmation"
msgstr ""
#: src/common/RebootButton.js:70
msgid "Are you sure you want to restart the router?"
msgstr ""
#: src/common/RebootButton.js:72
msgid "Cancel"
msgstr ""
#: src/common/RebootButton.js:73
msgid "Confirm reboot"
msgstr ""
#: src/form/components/ForisForm.js:88
msgid "Settings saved successfully"
msgstr ""
@ -97,3 +121,15 @@ msgstr ""
#~ msgid "Settings update was failed."
#~ msgstr ""
#~ msgid "Warning!"
#~ msgstr ""
#~ msgid "Reboot triggering was failed."
#~ msgstr ""
#~ msgid "Reboot triggering failed."
#~ msgstr ""
#~ msgid "Reboot requestq failed."
#~ 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: 2019-11-14 11:13+0100\n"
"POT-Creation-Date: 2019-11-29 16:27+0100\n"
"PO-Revision-Date: 2019-08-28 17:56+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: sk\n"
@ -66,6 +66,30 @@ msgstr ""
msgid "An unknown API error occurred."
msgstr ""
#: src/common/RebootButton.js:33
msgid "Reboot request failed."
msgstr ""
#: src/common/RebootButton.js:54
msgid "Reboot"
msgstr ""
#: src/common/RebootButton.js:69
msgid "Reboot confirmation"
msgstr ""
#: src/common/RebootButton.js:70
msgid "Are you sure you want to restart the router?"
msgstr ""
#: src/common/RebootButton.js:72
msgid "Cancel"
msgstr ""
#: src/common/RebootButton.js:73
msgid "Confirm reboot"
msgstr ""
#: src/form/components/ForisForm.js:88
msgid "Settings saved successfully"
msgstr ""
@ -96,3 +120,15 @@ msgstr ""
#~ msgid "Settings update was failed."
#~ msgstr ""
#~ msgid "Warning!"
#~ msgstr ""
#~ msgid "Reboot triggering was failed."
#~ msgstr ""
#~ msgid "Reboot triggering failed."
#~ msgstr ""
#~ msgid "Reboot requestq failed."
#~ 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: 2019-11-14 11:13+0100\n"
"POT-Creation-Date: 2019-11-29 16:27+0100\n"
"PO-Revision-Date: 2019-08-28 17:56+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: sv\n"
@ -66,6 +66,30 @@ msgstr ""
msgid "An unknown API error occurred."
msgstr ""
#: src/common/RebootButton.js:33
msgid "Reboot request failed."
msgstr ""
#: src/common/RebootButton.js:54
msgid "Reboot"
msgstr ""
#: src/common/RebootButton.js:69
msgid "Reboot confirmation"
msgstr ""
#: src/common/RebootButton.js:70
msgid "Are you sure you want to restart the router?"
msgstr ""
#: src/common/RebootButton.js:72
msgid "Cancel"
msgstr ""
#: src/common/RebootButton.js:73
msgid "Confirm reboot"
msgstr ""
#: src/form/components/ForisForm.js:88
msgid "Settings saved successfully"
msgstr ""
@ -96,3 +120,15 @@ msgstr ""
#~ msgid "Settings update was failed."
#~ msgstr ""
#~ msgid "Warning!"
#~ msgstr ""
#~ msgid "Reboot triggering was failed."
#~ msgstr ""
#~ msgid "Reboot triggering failed."
#~ msgstr ""
#~ msgid "Reboot requestq failed."
#~ msgstr ""