mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-24 18:59:17 +00:00
Merge pull request #8522 from matrix-org/travis/widget-screenshots
Move widget screenshots labs flag to devtools
This commit is contained in:
@@ -110,7 +110,8 @@ const WidgetContextMenu: React.FC<IProps> = ({
|
||||
}
|
||||
|
||||
let snapshotButton;
|
||||
if (widgetMessaging?.hasCapability(MatrixCapabilities.Screenshots)) {
|
||||
const screenshotsEnabled = SettingsStore.getValue("enableWidgetScreenshots");
|
||||
if (screenshotsEnabled && widgetMessaging?.hasCapability(MatrixCapabilities.Screenshots)) {
|
||||
const onSnapshotClick = () => {
|
||||
widgetMessaging?.takeScreenshot().then(data => {
|
||||
dis.dispatch({
|
||||
|
||||
@@ -101,6 +101,7 @@ const DevtoolsDialog: React.FC<IProps> = ({ roomId, onFinished }) => {
|
||||
<h3>{ _t("Options") }</h3>
|
||||
<SettingsFlag name="developerMode" level={SettingLevel.ACCOUNT} />
|
||||
<SettingsFlag name="showHiddenEventsInTimeline" level={SettingLevel.DEVICE} />
|
||||
<SettingsFlag name="enableWidgetScreenshots" level={SettingLevel.ACCOUNT} />
|
||||
</div>
|
||||
</BaseTool>;
|
||||
}
|
||||
|
||||
@@ -92,14 +92,6 @@ export default class LabsUserSettingsTab extends React.Component<{}, IState> {
|
||||
);
|
||||
});
|
||||
|
||||
groups.getOrCreate(LabGroup.Widgets, []).push(
|
||||
<SettingsFlag
|
||||
key="enableWidgetScreenshots"
|
||||
name="enableWidgetScreenshots"
|
||||
level={SettingLevel.ACCOUNT}
|
||||
/>,
|
||||
);
|
||||
|
||||
groups.getOrCreate(LabGroup.Experimental, []).push(
|
||||
<SettingsFlag
|
||||
key="lowBandwidth"
|
||||
|
||||
Reference in New Issue
Block a user