From d3c77c847a684a2fabeb2738a3002c98e44f9956 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Sun, 24 Jun 2018 08:32:47 +0200 Subject: [PATCH] Add "about" to help menu --- app/features/config/index.js | 9 +++++++-- app/features/navbar/components/HelpButton.js | 6 ++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/app/features/config/index.js b/app/features/config/index.js index e81da74..011c459 100644 --- a/app/features/config/index.js +++ b/app/features/config/index.js @@ -1,5 +1,10 @@ export default { + /** + * The URL with extra information about the app / service. + */ + aboutURL: 'https://jitsi.org/what-is-jitsi/', + /** * Application name. */ @@ -16,12 +21,12 @@ export default { feedbackURL: 'mailto:support@jitsi.org', /** - * The url of Privacy Policy Page. + * The URL of Privacy Policy Page. */ privacyPolicyURL: 'https://jitsi.org/meet/privacy', /** - * The url of Terms and Conditions Page. + * The URL of Terms and Conditions Page. */ termsAndConditionsURL: 'https://jitsi.org/meet/terms' }; diff --git a/app/features/navbar/components/HelpButton.js b/app/features/navbar/components/HelpButton.js index 7735421..6a36cca 100644 --- a/app/features/navbar/components/HelpButton.js +++ b/app/features/navbar/components/HelpButton.js @@ -32,12 +32,15 @@ export default class HelpButton extends Component< *, State> { droplistOpen: false }; + this._onAbout = openExternalLink.bind(undefined, config.aboutURL); this._onIconClick = this._onIconClick.bind(this); this._onPrivacyOptionClick = this._onPrivacyOptionClick.bind(this); this._onTermsOptionClick = this._onTermsOptionClick.bind(this); this._onSendFeedback = this._onSendFeedback.bind(this); } + _onAbout: (*) => void; + _onIconClick: (*) => void; /** @@ -107,6 +110,9 @@ export default class HelpButton extends Component< *, State> { Send Feedback + + About + );