Skip to content
Snippets Groups Projects
Commit 53b9c157 authored by vjrj's avatar vjrj
Browse files

Dev v2 message for humans

parent 2abf231e
No related branches found
No related tags found
No related merge requests found
......@@ -322,5 +322,7 @@
"tx_ready": "The transaction is ready to be processed",
"tx_in_block": "The transaction has been confirmed",
"tx_broadcast": "The transaction has been sent and is being processed",
"tx_processing": "Processing payment"
"tx_processing": "Processing payment",
"test_network_dialog_title": "Test Duniter Network Selected",
"test_network_dialog_message": "You have selected a testing duniter network used mainly for development. Any transactions made here are not real and occur in a testing environment separate from the main Ğ1 network. Feel free to test."
}
......@@ -328,5 +328,7 @@
"tx_processing": "Procesando pago",
"tx_ready": "La transacción está lista para ser enviada",
"tx_in_block": "La transacción ha sido confirmada",
"tx_broadcast": "La transacción ha se ha enviado y está siendo procesada"
"tx_broadcast": "La transacción ha se ha enviado y está siendo procesada",
"test_network_dialog_title": "Red duniter de pruebas seleccionada",
"test_network_dialog_message": "Has seleccionado una red de pruebas de duniter utilizada principalmente para el desarrollo. Cualquier transacción realizada aquí no es real y ocurre en un entorno de pruebas separado de la red Ğ1 principal. Siéntete libre de probar."
}
......@@ -266,11 +266,7 @@ class _FifthScreenState extends State<FifthScreen> {
GetIt.instance<ServiceManager>()
.updateService(v2mode);
if (v2mode) {
ScaffoldMessenger.of(context)
.showSnackBar(const SnackBar(
content:
Text('v2 mode activated for testing/develop'),
));
_showTestNetworkDialog(context);
}
}),
if (state.expertMode)
......@@ -332,4 +328,22 @@ class _FifthScreenState extends State<FifthScreen> {
);
}
}
void _showTestNetworkDialog(BuildContext context) {
showDialog(
context: context,
builder: (BuildContext context) {
return AlertDialog(
title: Text(tr('test_network_dialog_title')),
content: Text(tr('test_network_dialog_message')),
actions: <Widget>[
TextButton(
onPressed: () => Navigator.of(context).pop(),
child: Text(tr('ok')),
),
],
);
},
);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment