mirror of https://github.com/vector-im/riot-web
Re-add logic for if no integ url is configured
parent
0316aa11b7
commit
f4be4ab271
|
@ -22,12 +22,22 @@ import { TermsNotSignedError } from '../Terms';
|
||||||
export async function showIntegrationsManager(opts) {
|
export async function showIntegrationsManager(opts) {
|
||||||
const IntegrationsManager = sdk.getComponent("views.settings.IntegrationsManager");
|
const IntegrationsManager = sdk.getComponent("views.settings.IntegrationsManager");
|
||||||
|
|
||||||
|
let props = {};
|
||||||
|
if (ScalarAuthClient.isPossible()) {
|
||||||
|
props.loading = true;
|
||||||
|
} else {
|
||||||
|
props.configured = false;
|
||||||
|
}
|
||||||
|
|
||||||
const close = Modal.createTrackedDialog(
|
const close = Modal.createTrackedDialog(
|
||||||
'Integrations Manager', '', IntegrationsManager, { loading: true }, "mx_IntegrationsManager",
|
'Integrations Manager', '', IntegrationsManager, props, "mx_IntegrationsManager",
|
||||||
).close;
|
).close;
|
||||||
|
|
||||||
|
if (!ScalarAuthClient.isPossible()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const scalarClient = new ScalarAuthClient();
|
const scalarClient = new ScalarAuthClient();
|
||||||
let props;
|
|
||||||
try {
|
try {
|
||||||
await scalarClient.connect();
|
await scalarClient.connect();
|
||||||
if (!scalarClient.hasCredentials()) {
|
if (!scalarClient.hasCredentials()) {
|
||||||
|
|
Loading…
Reference in New Issue