pull/21833/head
Michael Telatynski 2021-07-23 18:50:25 +01:00
parent c8d9294350
commit 70d8378a66
2 changed files with 18 additions and 12 deletions

View File

@ -395,11 +395,14 @@ const SpaceLanding = ({ space }) => {
return <div className="mx_SpaceRoomView_landing"> return <div className="mx_SpaceRoomView_landing">
<div className="mx_SpaceFeedbackPrompt_topRight"> <div className="mx_SpaceFeedbackPrompt_topRight">
{ _t("Spaces are a new feature.") }&nbsp; { _t("Spaces are a new feature.") }&nbsp;
<AccessibleButton kind="link" onClick={() => { <AccessibleButton
kind="link"
onClick={() => {
Modal.createTrackedDialog("Beta Feedback", "feature_spaces", BetaFeedbackDialog, { Modal.createTrackedDialog("Beta Feedback", "feature_spaces", BetaFeedbackDialog, {
featureId: "feature_spaces", featureId: "feature_spaces",
}); });
}}> }}
>
{ _t("Give feedback.") } { _t("Give feedback.") }
</AccessibleButton> </AccessibleButton>
</div> </div>

View File

@ -43,13 +43,16 @@ const BetaFeedbackDialog: React.FC<IProps> = ({ featureId, onFinished }) => {
return SettingsStore.getValue(k); return SettingsStore.getValue(k);
}))} }))}
> >
<AccessibleButton kind="link" onClick={() => { <AccessibleButton
kind="link"
onClick={() => {
onFinished(false); onFinished(false);
defaultDispatcher.dispatch({ defaultDispatcher.dispatch({
action: Action.ViewUserSettings, action: Action.ViewUserSettings,
initialTabId: UserTab.Labs, initialTabId: UserTab.Labs,
}); });
}}> }}
>
{ _t("To leave the beta, visit your settings.") } { _t("To leave the beta, visit your settings.") }
</AccessibleButton> </AccessibleButton>
</GenericFeatureFeedbackDialog>; </GenericFeatureFeedbackDialog>;