Poll history - remove active development labs flag (#10357)
* add poll history tab to room settings * test poll history in room settings * remove posthog tracking for poll his * remove labs flag for poll history * i18n
This commit is contained in:
parent
31a959efe9
commit
2344eaab1c
9 changed files with 33 additions and 32 deletions
|
@ -164,16 +164,14 @@ export default class RoomSettingsDialog extends React.Component<IProps, IState>
|
|||
);
|
||||
}
|
||||
|
||||
if (SettingsStore.getValue("feature_poll_history")) {
|
||||
tabs.push(
|
||||
new Tab(
|
||||
ROOM_POLL_HISTORY_TAB,
|
||||
_td("Polls history"),
|
||||
"mx_RoomSettingsDialog_pollsIcon",
|
||||
<PollHistoryTab roomId={this.props.roomId} onFinished={() => this.props.onFinished(true)} />,
|
||||
),
|
||||
);
|
||||
}
|
||||
tabs.push(
|
||||
new Tab(
|
||||
ROOM_POLL_HISTORY_TAB,
|
||||
_td("Polls history"),
|
||||
"mx_RoomSettingsDialog_pollsIcon",
|
||||
<PollHistoryTab roomId={this.props.roomId} onFinished={() => this.props.onFinished(true)} />,
|
||||
),
|
||||
);
|
||||
|
||||
if (SettingsStore.getValue(UIFeature.AdvancedSettings)) {
|
||||
tabs.push(
|
||||
|
|
|
@ -327,8 +327,6 @@ const RoomSummaryCard: React.FC<IProps> = ({ room, permalinkCreator, onClose })
|
|||
const pinningEnabled = useFeatureEnabled("feature_pinning");
|
||||
const pinCount = usePinnedEvents(pinningEnabled ? room : undefined)?.length;
|
||||
|
||||
const isPollHistoryEnabled = useFeatureEnabled("feature_poll_history");
|
||||
|
||||
return (
|
||||
<BaseCard header={header} className="mx_RoomSummaryCard" onClose={onClose}>
|
||||
<Group title={_t("About")} className="mx_RoomSummaryCard_aboutGroup">
|
||||
|
@ -341,7 +339,7 @@ const RoomSummaryCard: React.FC<IProps> = ({ room, permalinkCreator, onClose })
|
|||
{_t("Files")}
|
||||
</Button>
|
||||
)}
|
||||
{!isVideoRoom && isPollHistoryEnabled && (
|
||||
{!isVideoRoom && (
|
||||
<Button className="mx_RoomSummaryCard_icon_poll" onClick={onRoomPollHistoryClick}>
|
||||
{_t("Polls history")}
|
||||
</Button>
|
||||
|
|
|
@ -960,8 +960,6 @@
|
|||
"Use new room breadcrumbs": "Use new room breadcrumbs",
|
||||
"Right panel stays open": "Right panel stays open",
|
||||
"Defaults to room member list.": "Defaults to room member list.",
|
||||
"Polls history": "Polls history",
|
||||
"View a list of polls in a room. (Under active development)": "View a list of polls in a room. (Under active development)",
|
||||
"Jump to date (adds /jumptodate and jump to date headers)": "Jump to date (adds /jumptodate and jump to date headers)",
|
||||
"Requires your server to support MSC3030": "Requires your server to support MSC3030",
|
||||
"Send read receipts": "Send read receipts",
|
||||
|
@ -2236,6 +2234,7 @@
|
|||
"Not encrypted": "Not encrypted",
|
||||
"About": "About",
|
||||
"Files": "Files",
|
||||
"Polls history": "Polls history",
|
||||
"Pinned": "Pinned",
|
||||
"Export chat": "Export chat",
|
||||
"Share room": "Share room",
|
||||
|
|
|
@ -363,14 +363,6 @@ export const SETTINGS: { [setting: string]: ISetting } = {
|
|||
description: _td("Defaults to room member list."),
|
||||
default: false,
|
||||
},
|
||||
"feature_poll_history": {
|
||||
isFeature: true,
|
||||
labsGroup: LabGroup.Rooms,
|
||||
supportedLevels: LEVELS_FEATURE,
|
||||
displayName: _td("Polls history"),
|
||||
description: _td("View a list of polls in a room. (Under active development)"),
|
||||
default: false,
|
||||
},
|
||||
"feature_jump_to_date": {
|
||||
isFeature: true,
|
||||
labsGroup: LabGroup.Messaging,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue