-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Show a "progress" dialog while invites are being sent #30561
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 8 commits
f43fadd
a562b29
58f1893
0541b7a
a646f35
b0a15d9
fc3a52c
2db2a77
f72e3e6
5b23c3e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| /* | ||
| Copyright 2025 New Vector Ltd. | ||
|
|
||
| SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial | ||
| Please see LICENSE files in the repository root for full details. | ||
| */ | ||
|
|
||
| .mx_InviteProgressBody { | ||
| text-align: center; | ||
| font: var(--cpd-font-body-lg-regular); | ||
|
|
||
| h1 { | ||
| color: var(--cpd-color-text-primary); | ||
| font: var(--cpd-font-heading-sm-semibold); | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| /* | ||
| Copyright 2025 New Vector Ltd. | ||
|
|
||
| SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial | ||
| Please see LICENSE files in the repository root for full details. | ||
| */ | ||
|
|
||
| import React from "react"; | ||
|
|
||
| import InlineSpinner from "../elements/InlineSpinner"; | ||
| import { _t } from "../../../languageHandler"; | ||
|
|
||
| /** The common body of components that show the progress of sending room invites. */ | ||
| const InviteProgressBody: React.FC = () => { | ||
| return ( | ||
| <div className="mx_InviteProgressBody"> | ||
| <InlineSpinner w={32} h={32} /> | ||
| <h1>{_t("invite|progress|preparing")}</h1> | ||
| {_t("invite|progress|dont_close")} | ||
| </div> | ||
| ); | ||
| }; | ||
|
|
||
| export default InviteProgressBody; |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,42 @@ | ||||||
| /* | ||||||
| Copyright 2025 New Vector Ltd. | ||||||
|
|
||||||
| SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial | ||||||
| Please see LICENSE files in the repository root for full details. | ||||||
| */ | ||||||
|
|
||||||
| import React from "react"; | ||||||
|
|
||||||
| import Modal from "../../../Modal.tsx"; | ||||||
| import InviteProgressBody from "./InviteProgressBody.tsx"; | ||||||
|
|
||||||
| interface Props { | ||||||
| onFinished: () => void; | ||||||
|
||||||
| } | ||||||
|
|
||||||
| /** A Modal dialog that pops up while room invites are being sent. */ | ||||||
| const InviteProgressDialog: React.FC<Props> = (props) => { | ||||||
|
||||||
| const InviteProgressDialog: React.FC<Props> = (props) => { | |
| const InviteProgressDialog: React.FC<Props> = (_) => { |
To make it clear that this is intentionally left unused.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What actually changed here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
heh, great question. Here's the diff:
Looks like a sub-pixel difference in some of the text.