Bring View Source
back from behind developer mode (#8369)
This commit is contained in:
parent
e45cd39906
commit
65c74bd158
1 changed files with 8 additions and 10 deletions
|
@ -397,16 +397,14 @@ export default class MessageContextMenu extends React.Component<IProps, IState>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
let viewSourceButton: JSX.Element;
|
// This is specifically not behind the developerMode flag to give people insight into the Matrix
|
||||||
if (SettingsStore.getValue("developerMode")) {
|
const viewSourceButton = (
|
||||||
viewSourceButton = (
|
<IconizedContextMenuOption
|
||||||
<IconizedContextMenuOption
|
iconClassName="mx_MessageContextMenu_iconSource"
|
||||||
iconClassName="mx_MessageContextMenu_iconSource"
|
label={_t("View source")}
|
||||||
label={_t("View source")}
|
onClick={this.onViewSourceClick}
|
||||||
onClick={this.onViewSourceClick}
|
/>
|
||||||
/>
|
);
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
let unhidePreviewButton: JSX.Element;
|
let unhidePreviewButton: JSX.Element;
|
||||||
if (eventTileOps?.isWidgetHidden()) {
|
if (eventTileOps?.isWidgetHidden()) {
|
||||||
|
|
Loading…
Reference in a new issue