Add source URL to help button

This commit is contained in:
Sven Schwyn 2020-04-10 15:35:02 +02:00 committed by Saúl Ibarra Corretgé
parent 1288944acb
commit 5a863ab904
2 changed files with 11 additions and 0 deletions

View file

@ -5,6 +5,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.
*/

View file

@ -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>