Commit 0265be70 authored by Roman Ondráček's avatar Roman Ondráček

IQRF net: add TR configuration success read flash message for BFUs

Signed-off-by: Roman Ondráček's avatarRoman Ondráček <ondracek.roman@centrum.cz>
parent 647e551f
......@@ -119,6 +119,9 @@ class TrConfigPresenter extends ProtectedPresenter {
if (property_exists($configuration, 'stdAndLpNetwork')) {
$configuration->stdAndLpNetwork = (int) $configuration->stdAndLpNetwork;
}
if (!$this->getUser()->isInRole('power')) {
$this->flashSuccess('iqrfnet.trConfiguration.read.success');
}
$this->template->configuration = $configuration;
} catch (DpaErrorException | EmptyResponseException | JsonException | UserErrorException $e) {
$this->template->configuration = null;
......
......@@ -307,6 +307,7 @@ trConfiguration:
description: Edit TR configuration.
read:
failure: An error occurred while TR configuration reading.
success: The TR configuration has been read successfully.
write:
failure: An error occurred while TR configuration saving.
success: The TR configuration has been saved successfully.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment