Skip to content
Snippets Groups Projects
Commit da65d1af authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[fix] Better warning message in modules

parent 3008bc91
No related branches found
No related tags found
No related merge requests found
...@@ -195,8 +195,8 @@ ...@@ -195,8 +195,8 @@
"settings.modules.already_install": "Module already installed", "settings.modules.already_install": "Module already installed",
"settings.modules.path_does_not_exist": "Path does not lead to a module", "settings.modules.path_does_not_exist": "Path does not lead to a module",
"settings.modules.wrong_package_source": "Package URL has wrong format", "settings.modules.wrong_package_source": "Package URL has wrong format",
"settings.modules.warning": "Please be <b>VERY CAREFUL</b> when choosing to install a module: you should have checked that this module is not a virus, nor wants to steal your informations.<br>A module has <i>a lot of power</i> and can likely access to any part of your computer in the limit of the user's access rights:<ul><li>- your node's keyring (in the computer's memory)</li><li>- your personal files (photos, unencrypted passwords, browser favorites, ...)</li><li>- your internet access</li><li>- your local network</li></ul>You could get informations about a module by looking on the Internet.", "settings.modules.warning": "Please be <b>VERY CAREFUL</b> when installing a module: you should <b>check that it is not a virus</b>, nor wants to steal your informations. <b>A MODULE HAS A LOT OF POWER</b> and can access/modify any part of your system (including your private key), in the limit of the user's access rights.",
"settings.modules.warning_light": "Please read this warning before installing a module!", "settings.modules.warning_light": "WARNING! (click to see more)",
"settings.modules.warning_close": "Close this message", "settings.modules.warning_close": "Close this message",
"settings.modules.on": "On", "settings.modules.on": "On",
"settings.modules.off": "Off", "settings.modules.off": "Off",
......
...@@ -8,12 +8,11 @@ ...@@ -8,12 +8,11 @@
p(translate="settings.modules.message") p(translate="settings.modules.message")
blockquote.left-align.orange.lighten-5(ng-if="!hasAccess" translate="settings.modules.no_access") blockquote.left-align.orange.lighten-5(ng-if="!hasAccess" translate="settings.modules.no_access")
blockquote.left-align.orange.lighten-5(ng-if="hasAccess")
blockquote.left-align.orange.lighten-5(ng-if="hasAccess && !warningShown")
a.waves-effect.waves-light(href="" translate="settings.modules.warning_light" ng-click="showWarning()")
blockquote.left-align.orange.lighten-5(ng-if="hasAccess && warningShown")
div(translate="settings.modules.warning") div(translate="settings.modules.warning")
a.close.waves-effect.waves-light(href="" translate="settings.modules.warning_close" ng-click="hideWarning()") br
div More informations at:
a(href="https://duniter.org/fr/wiki/duniter/modules" target="_blank") https://duniter.org/fr/wiki/duniter/modules
ul.collection.with-header ul.collection.with-header
li.collection-item(ng-repeat="mod in modules track by $index") li.collection-item(ng-repeat="mod in modules track by $index")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment