mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
Adding survey button to settings menu.
This commit is contained in:
parent
ffecc1bcd0
commit
daae55d62c
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -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'),
|
||||
|
|
Loading…
Reference in a new issue