-
Notifications
You must be signed in to change notification settings - Fork 501
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: work even when bandwidth metrics are disabled (#1024)
License: MIT Signed-off-by: Henrique Dias <hacdias@gmail.com>
- Loading branch information
Showing
10 changed files
with
93 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import React from 'react' | ||
import { translate, Trans } from 'react-i18next' | ||
import Shell from '../components/shell/Shell' | ||
import Box from '../components/box/Box' | ||
|
||
const StatusNotConnected = ({ t }) => { | ||
return ( | ||
<Box className='mt3 pa3' > | ||
<h2 className='ttu yellow tracked f6 fw4 aqua mt0 mb4'>{t('bandwidthStats')}</h2> | ||
|
||
<p className='mw6 mr2 lh-copy charcoal f6'> | ||
<Trans i18nKey='bandwidthStatsDisabled'> | ||
You have the bandwidth metrics disabled. You can enable them by typing the command bellow | ||
or changing the key <code>Swarm.DisableBandwidthMetrics</code> to <code>false</code> on | ||
<a className='link blue' href='#/settings'>Settings</a>. Then, you need to restart the IPFS | ||
daemon to apply the changes. | ||
</Trans> | ||
</p> | ||
|
||
<Shell> | ||
<code className='db'>$ ipfs config --json Swarm.DisableBandwidthMetrics false</code> | ||
</Shell> | ||
</Box> | ||
) | ||
} | ||
|
||
export default translate('status')(StatusNotConnected) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters