21 lines
547 B
JavaScript
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();
|
|
}
|
|
}
|