[MM-22013] - Allow users to specify default download locations (#1383)

* [MM-22013] - Allow users to specify default download locations

* PR comments

* Add proper config prop

* Update src/browser/components/SettingsPage.jsx

Co-authored-by: Guillermo Vayá <guillermo.vaya@mattermost.com>

* Remove string ref

* Fix styling

* Update styling

* Disable input

* Add variable for windows

* Prevent dialog from opening twice

Co-authored-by: Nevyana Angelova <nevyangelova@Nevyanas-MBP-2.fritz.box>
Co-authored-by: Nevyana Angelova <nevyangelova@Nevyanas-MacBook-Pro-2.local>
Co-authored-by: Guillermo Vayá <guillermo.vaya@mattermost.com>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
This commit is contained in:
Nev Angelova
2020-11-03 11:25:48 +00:00
committed by GitHub
parent 98c7aed105
commit ad1871ad95
4 changed files with 73 additions and 2 deletions

View File

@@ -23,6 +23,7 @@ const defaultPreferences = {
autostart: true,
spellCheckerLocale: 'en-US',
darkMode: false,
downloadLocation: `/Users/${process.env.USER || process.env.USERNAME}/Downloads`
};
export default defaultPreferences;