mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-26 11:38:37 +00:00
Remove Piwik support (#8835)
* Remove all mentions of Piwik * Kill off all consumer of the old Piwik Analytics module * Simplify ModalManager interface * i18n * Attempt to fix old e2e tests * Remove unused component * Iterate PR
This commit is contained in:
committed by
GitHub
parent
7d14d15ba6
commit
3c5c2bef6d
@@ -59,7 +59,7 @@ export class ModalWidgetStore extends AsyncStoreWithClient<IState> {
|
||||
if (this.modalInstance) return;
|
||||
this.openSourceWidgetId = sourceWidget.id;
|
||||
this.openSourceWidgetRoomId = widgetRoomId;
|
||||
this.modalInstance = Modal.createTrackedDialog('Modal Widget', '', ModalWidgetDialog, {
|
||||
this.modalInstance = Modal.createDialog(ModalWidgetDialog, {
|
||||
widgetDefinition: { ...requestData },
|
||||
widgetRoomId,
|
||||
sourceWidgetId: sourceWidget.id,
|
||||
|
||||
@@ -448,7 +448,7 @@ export class RoomViewStore extends Store<ActionPayload> {
|
||||
}
|
||||
}
|
||||
|
||||
Modal.createTrackedDialog('Failed to join room', '', ErrorDialog, {
|
||||
Modal.createDialog(ErrorDialog, {
|
||||
title: _t("Failed to join"),
|
||||
description,
|
||||
});
|
||||
|
||||
@@ -232,14 +232,11 @@ export class SetupEncryptionStore extends EventEmitter {
|
||||
const cli = MatrixClientPeg.get();
|
||||
await cli.bootstrapCrossSigning({
|
||||
authUploadDeviceSigningKeys: async (makeRequest) => {
|
||||
const { finished } = Modal.createTrackedDialog(
|
||||
'Cross-signing keys dialog', '', InteractiveAuthDialog,
|
||||
{
|
||||
title: _t("Setting up keys"),
|
||||
matrixClient: cli,
|
||||
makeRequest,
|
||||
},
|
||||
);
|
||||
const { finished } = Modal.createDialog(InteractiveAuthDialog, {
|
||||
title: _t("Setting up keys"),
|
||||
matrixClient: cli,
|
||||
makeRequest,
|
||||
});
|
||||
const [confirmed] = await finished;
|
||||
if (!confirmed) {
|
||||
throw new Error("Cross-signing key upload auth canceled");
|
||||
|
||||
@@ -375,7 +375,7 @@ export class StopGapWidget extends EventEmitter {
|
||||
this.messaging.on(`action:${ElementWidgetActions.HangupCall}`,
|
||||
(ev: CustomEvent<IHangupCallApiRequest>) => {
|
||||
if (ev.detail.data?.errorMessage) {
|
||||
Modal.createTrackedDialog("Connection lost", "", ErrorDialog, {
|
||||
Modal.createDialog(ErrorDialog, {
|
||||
title: _t("Connection lost"),
|
||||
description: _t("You were disconnected from the call. (Error: %(message)s)", {
|
||||
message: ev.detail.data.errorMessage,
|
||||
|
||||
@@ -118,8 +118,7 @@ export class StopGapWidgetDriver extends WidgetDriver {
|
||||
let rememberApproved = false;
|
||||
if (missing.size > 0) {
|
||||
try {
|
||||
const [result] = await Modal.createTrackedDialog(
|
||||
'Approve Widget Caps', '',
|
||||
const [result] = await Modal.createDialog(
|
||||
WidgetCapabilitiesPromptDialog,
|
||||
{
|
||||
requestedCapabilities: missing,
|
||||
@@ -265,7 +264,7 @@ export class StopGapWidgetDriver extends WidgetDriver {
|
||||
|
||||
observer.update({ state: OpenIDRequestState.PendingUserConfirmation });
|
||||
|
||||
Modal.createTrackedDialog("OpenID widget permissions", '', WidgetOpenIDPermissionsDialog, {
|
||||
Modal.createDialog(WidgetOpenIDPermissionsDialog, {
|
||||
widget: this.forWidget,
|
||||
widgetKind: this.forWidgetKind,
|
||||
inRoomId: this.inRoomId,
|
||||
|
||||
Reference in New Issue
Block a user