aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorSven Schwyn <schwyn@bitcetera.com>2020-04-10 15:35:02 +0200
committerSaúl Ibarra Corretgé <s@saghul.net>2020-04-12 20:48:27 +0200
commit5a863ab904935cd259bb30a9e155b7665e36644f (patch)
tree374e878506082b15b61a67166812782a7a9476b4 /app
parent1288944acb6aff8b8650225e887a9035c6d446b8 (diff)
Add source URL to help button
Diffstat (limited to 'app')
-rw-r--r--app/features/config/index.js5
-rw-r--r--app/features/navbar/components/HelpButton.js6
2 files changed, 11 insertions, 0 deletions
diff --git a/app/features/config/index.js b/app/features/config/index.js
index 011c459..64350be 100644
--- a/app/features/config/index.js
+++ b/app/features/config/index.js
@@ -6,6 +6,11 @@ export default {
aboutURL: 'https://jitsi.org/what-is-jitsi/',
/**
+ * The URL to the source code repository.
+ */
+ sourceURL: 'https://github.com/jitsi/jitsi-meet-electron',
+
+ /**
* Application name.
*/
appName: 'Jitsi Meet',
diff --git a/app/features/navbar/components/HelpButton.js b/app/features/navbar/components/HelpButton.js
index 469f2fd..8df9a46 100644
--- a/app/features/navbar/components/HelpButton.js
+++ b/app/features/navbar/components/HelpButton.js
@@ -34,6 +34,7 @@ export default class HelpButton extends Component< *, State> {
};
this._onAboutClick = openExternalLink.bind(undefined, config.aboutURL);
+ this._onSourceClick = openExternalLink.bind(undefined, config.sourceURL);
this._onIconClick = this._onIconClick.bind(this);
this._onOpenChange = this._onOpenChange.bind(this);
this._onPrivacyClick
@@ -46,6 +47,8 @@ export default class HelpButton extends Component< *, State> {
_onAboutClick: (*) => void;
+ _onSourceClick: (*) => void;
+
_onIconClick: (*) => void;
/**
@@ -104,6 +107,9 @@ export default class HelpButton extends Component< *, State> {
<Item onActivate = { this._onAboutClick }>
About
</Item>
+ <Item onActivate = { this._onSourceClick }>
+ Source
+ </Item>
<Item>
Version: { version }
</Item>