Step 8.5: Move tabbed integration manager dialog construction
This commit is contained in:
parent
226700ba95
commit
bcf413734b
4 changed files with 59 additions and 6 deletions
|
@ -23,6 +23,7 @@ import ForwardDialog from "../components/views/dialogs/ForwardDialog";
|
|||
import { MatrixClientPeg } from "../MatrixClientPeg";
|
||||
import { Action } from "../dispatcher/actions";
|
||||
import ReportEventDialog from "../components/views/dialogs/ReportEventDialog";
|
||||
import TabbedIntegrationManagerDialog from "../components/views/dialogs/TabbedIntegrationManagerDialog";
|
||||
|
||||
/**
|
||||
* Auxiliary class to listen for dialog opening over the dispatcher and
|
||||
|
@ -65,6 +66,17 @@ export class DialogOpener {
|
|||
event: payload.event,
|
||||
}, 'mx_Dialog_reportEvent');
|
||||
break;
|
||||
case Action.OpenTabbedIntegrationManagerDialog:
|
||||
Modal.createTrackedDialog(
|
||||
'Tabbed Integration Manager', '', TabbedIntegrationManagerDialog,
|
||||
{
|
||||
room: payload.room,
|
||||
screen: payload.screen,
|
||||
integrationId: payload.integrationId,
|
||||
},
|
||||
'mx_TabbedIntegrationManagerDialog',
|
||||
);
|
||||
break;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue