diff --git a/res/css/_components.scss b/res/css/_components.scss index 12a65bbbde..f175981e9f 100644 --- a/res/css/_components.scss +++ b/res/css/_components.scss @@ -69,7 +69,7 @@ @import "./views/dialogs/_DeactivateAccountDialog.scss"; @import "./views/dialogs/_DevtoolsDialog.scss"; @import "./views/dialogs/_EditCommunityPrototypeDialog.scss"; -@import "./views/dialogs/_EMSElementProDialog.scss"; +@import "./views/dialogs/_ElementProDialog.scss"; @import "./views/dialogs/_FeedbackDialog.scss"; @import "./views/dialogs/_GroupAddressPicker.scss"; @import "./views/dialogs/_IncomingSasDialog.scss"; diff --git a/res/css/views/dialogs/_EMSElementProDialog.scss b/res/css/views/dialogs/_ElementProDialog.scss similarity index 88% rename from res/css/views/dialogs/_EMSElementProDialog.scss rename to res/css/views/dialogs/_ElementProDialog.scss index 7ee05e5fbd..137454a8e5 100644 --- a/res/css/views/dialogs/_EMSElementProDialog.scss +++ b/res/css/views/dialogs/_ElementProDialog.scss @@ -14,16 +14,16 @@ See the License for the specific language governing permissions and limitations under the License. */ -.mx_EMSElementProDialog .mx_Dialog { +.mx_ElementProDialog .mx_Dialog { height: 66%; min-width: 50%; } -.mx_EMSElementProBaseDialog { +.mx_ElementProBaseDialog { height: 100%; } -.mx_EMSElementProDialog_container { +.mx_ElementProDialog_container { height: 90%; iframe { diff --git a/src/components/structures/EMSElementProAction.tsx b/src/components/structures/ElementProAction.tsx similarity index 85% rename from src/components/structures/EMSElementProAction.tsx rename to src/components/structures/ElementProAction.tsx index 9426f12234..fdd7df8410 100644 --- a/src/components/structures/EMSElementProAction.tsx +++ b/src/components/structures/ElementProAction.tsx @@ -15,7 +15,7 @@ limitations under the License. */ import * as React from "react"; -import EMSElementProDialog from "../views/dialogs/EMSElementProDialog"; +import ElementProDialog from "../views/dialogs/ElementProDialog"; import Modal, {IHandle} from "../../Modal"; import { IconizedContextMenuOption, @@ -27,15 +27,15 @@ interface IProps {} interface IState {} -export default class EMSElementProAction extends React.PureComponent { +export default class ElementProAction extends React.PureComponent { private closingAllowed = false; private modalRef: IHandle; private openDialog = () => { this.modalRef = Modal.createTrackedDialog( - 'Element Pro Open', '', EMSElementProDialog, { + 'Element Pro Open', '', ElementProDialog, { requestClose: this.requestClose, - }, "mx_EMSElementProDialog", false, true, { + }, "mx_ElementProDialog", false, true, { onBeforeClose: async () => this.closingAllowed, }, ); diff --git a/src/components/structures/UserMenu.tsx b/src/components/structures/UserMenu.tsx index aa8c6c91a2..f8dd4e0b91 100644 --- a/src/components/structures/UserMenu.tsx +++ b/src/components/structures/UserMenu.tsx @@ -51,7 +51,7 @@ import { RightPanelPhases } from "../../stores/RightPanelStorePhases"; import ErrorDialog from "../views/dialogs/ErrorDialog"; import EditCommunityPrototypeDialog from "../views/dialogs/EditCommunityPrototypeDialog"; import {UIFeature} from "../../settings/UIFeature"; -import EMSElementProAction from "./EMSElementProAction"; +import ElementProAction from "./ElementProAction"; interface IProps { isMinimized: boolean; @@ -274,7 +274,7 @@ export default class UserMenu extends React.Component { let topSection; const signupLink = getHostingLink("user-context-menu"); - const elementProConfig = SdkConfig.get().ems_element_pro; + const elementProConfig = SdkConfig.get().element_pro; if (MatrixClientPeg.get().isGuest()) { topSection = (
@@ -297,7 +297,7 @@ export default class UserMenu extends React.Component { } else if (signupLink || elementProConfig) { let elementProIFrame; if (elementProConfig && elementProConfig.url) { - // If ems_element_pro.domains is set to a non-empty array, only show + // If element_pro.domains is set to a non-empty array, only show // dialog if the user is on the domain or a subdomain. const elementProDomains = elementProConfig.domains || []; const mxDomain = MatrixClientPeg.get().getDomain(); @@ -307,7 +307,7 @@ export default class UserMenu extends React.Component { className="" onClick={this.onCloseMenu} > - +
; } } diff --git a/src/components/views/dialogs/EMSElementProConfirmCloseDialog.tsx b/src/components/views/dialogs/ElementProConfirmCloseDialog.tsx similarity index 93% rename from src/components/views/dialogs/EMSElementProConfirmCloseDialog.tsx rename to src/components/views/dialogs/ElementProConfirmCloseDialog.tsx index 95210a49a5..d8586aa386 100644 --- a/src/components/views/dialogs/EMSElementProConfirmCloseDialog.tsx +++ b/src/components/views/dialogs/ElementProConfirmCloseDialog.tsx @@ -28,7 +28,7 @@ interface IState {} /* * A dialog for confirming closing the Element Pro setup dialog. */ -export default class EMSElementProConfirmCloseDialog extends React.PureComponent { +export default class ElementProConfirmCloseDialog extends React.PureComponent { public render() { return ( { +export default class ElementProDataConfirmDialog extends React.PureComponent { public render() { return ( { +export default class ElementProDialog extends React.PureComponent { private iframeRef: React.RefObject = React.createRef(); private readonly elementProSetupUrl: string; @@ -46,7 +46,7 @@ export default class EMSElementProDialog extends React.PureComponent { @@ -56,7 +56,7 @@ export default class EMSElementProDialog extends React.PureComponent { if (result) { @@ -85,7 +85,7 @@ export default class EMSElementProDialog extends React.PureComponent { if (result) { @@ -133,13 +133,13 @@ export default class EMSElementProDialog extends React.PureComponent -
+