Adding survey button to settings menu.

This commit is contained in:
Warrick Corfe-Tan 2021-09-20 15:44:19 +10:00
parent ffecc1bcd0
commit daae55d62c
2 changed files with 20 additions and 1 deletions

View file

@ -441,5 +441,7 @@
"deletionTypeTitle": "Deletion Type",
"deleteJustForMe": "Delete just for me",
"messageDeletedPlaceholder": "This message has been deleted",
"messageDeleted": "Message deleted"
"messageDeleted": "Message deleted",
"surveyTitle": "Take our Session Survey",
"goToOurSurvey": "Go to our survey"
}

View file

@ -463,6 +463,23 @@ class SettingsViewInner extends React.Component<SettingsViewProps, State> {
info: (value: number) => `${value}%`,
},
},
{
id: 'session-survey',
title: window.i18n('surveyTitle'),
description: undefined,
hidden: false,
type: SessionSettingType.Button,
category: SessionSettingCategory.Appearance,
setFn: undefined,
comparisonValue: undefined,
onClick: () => {
void shell.openExternal('https://getsession.org/survey');
},
content: {
buttonText: window.i18n('goToOurSurvey'),
buttonColor: SessionButtonColor.Primary,
},
},
{
id: 'help-translation',
title: window.i18n('translation'),