From 1c0569fc465dc4f37b5345ee0ffc0f8a04081478 Mon Sep 17 00:00:00 2001
From: Henrique Dias
Date: Mon, 22 Apr 2019 20:31:03 +0100
Subject: [PATCH 1/2] feat: add ipfs on path option
License: MIT
Signed-off-by: Henrique Dias
---
public/locales/en/settings.json | 4 +++-
src/settings/DesktopSettings.js | 14 ++++++++++++++
2 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/public/locales/en/settings.json b/public/locales/en/settings.json
index 253772006..e61392172 100644
--- a/public/locales/en/settings.json
+++ b/public/locales/en/settings.json
@@ -61,5 +61,7 @@
"summary": "JavaScript error messages and stack traces",
"details": "Records JavaScript error messages and stack traces that occur while using the app, where possible. It is very helpful to know when the app is not working for you, but <1>error messages may include identifiable information1> like CIDs or file paths, so only enable this if you are comfortable sharing that information with us."
}
- }
+ },
+ "ipfsCmdTools": "IPFS command line tools",
+ "ipfsCmdToolsDescription": "Add <0>ipfs0> binary to your system <0>PATH0> so you can use it in the command line."
}
diff --git a/src/settings/DesktopSettings.js b/src/settings/DesktopSettings.js
index 919d55904..981d47137 100644
--- a/src/settings/DesktopSettings.js
+++ b/src/settings/DesktopSettings.js
@@ -1,4 +1,5 @@
import React from 'react'
+import os from 'os'
import { connect } from 'redux-bundler-react'
import { translate, Trans } from 'react-i18next'
import Box from '../components/box/Box'
@@ -56,6 +57,19 @@ export function DesktopSettings ({ t, doDesktopSettingsToggle, desktopSettings }
components={[0, 0, 0, 0]} />
+ { os.platform() !== 'win32' &&
+ doDesktopSettingsToggle('ipfsOnPath')}>
+
+ 0, 0, 0, 0]} />
+
+
+ }
)
}
From 70e35ff8b23c6c8c5de4e2569aff71225f053f2f Mon Sep 17 00:00:00 2001
From: Henrique Dias
Date: Tue, 23 Apr 2019 01:14:48 +0100
Subject: [PATCH 2/2] feat: support windows
---
src/settings/DesktopSettings.js | 24 +++++++++++-------------
1 file changed, 11 insertions(+), 13 deletions(-)
diff --git a/src/settings/DesktopSettings.js b/src/settings/DesktopSettings.js
index 981d47137..549b5dfb7 100644
--- a/src/settings/DesktopSettings.js
+++ b/src/settings/DesktopSettings.js
@@ -57,19 +57,17 @@ export function DesktopSettings ({ t, doDesktopSettingsToggle, desktopSettings }
components={[0, 0, 0, 0]} />
- { os.platform() !== 'win32' &&
- doDesktopSettingsToggle('ipfsOnPath')}>
-
- 0, 0, 0, 0]} />
-
-
- }
+ doDesktopSettingsToggle('ipfsOnPath')}>
+
+ 0, 0, 0, 0]} />
+
+
)
}