diff --git a/public/locales/en/notify.json b/public/locales/en/notify.json index 7173ab18a..7d95ae84b 100644 --- a/public/locales/en/notify.json +++ b/public/locales/en/notify.json @@ -16,5 +16,11 @@ "connectedToPeer": "Successfully connected to the provided peer.", "experimentsErrors": { "npmOnIpfs": "We couldn't make changes to your system. Please install or uninstall 'ipfs-npm' package manually." + }, + "desktopToggleErrors": { + "autoLaunch": "Could not toggle launch at startup option.", + "ipfsOnPath": "Could not toggle IPFS command line tools.", + "downloadHashShortcut": "Could not toggle download hash shortcut.", + "screenshotShortcut": "Could not toggle screenshot shortcut." } } diff --git a/src/bundles/notify.js b/src/bundles/notify.js index 24c650a05..f02d53e12 100644 --- a/src/bundles/notify.js +++ b/src/bundles/notify.js @@ -1,6 +1,7 @@ import { createSelector } from 'redux-bundler' import { ACTIONS as EXP_ACTIONS } from './experiments' import { ACTIONS as FILES_ACTIONS } from './files' +import { ACTIONS as DESK_ACTIONS } from './ipfs-desktop' /* # Notify @@ -70,6 +71,15 @@ const notify = { } } + if (action.type === DESK_ACTIONS.SETTING_TOGGLE_FAILED) { + return { + ...state, + show: true, + error: true, + eventId: `desktopToggleErrors.${action.payload.key}` + } + } + return state },