Files
dashtab/app/services/integration-result.js
raucao d837a1ffaa Remove success modal for Discourse connect
Also show error modals on failed reconnect
2026-10-08 20:45:55 +02:00

21 lines
547 B
JavaScript

import Service, { service } from '@ember/service';
import IntegrationResult from '../components/settings/integrations/result.gjs';
// Reports a failed integration authorization as a modal, used where there is
// no form to show an inline error (the web redirect callback and reconnects).
export default class IntegrationResultService extends Service {
@service modal;
show(result) {
this.modal.open({
component: IntegrationResult,
props: { result },
size: 'sm',
});
}
dismiss() {
this.modal.close();
}
}