open-vault/ui/lib/kmip/addon/engine.js
claire bontempo caf8f83cd4
UI: download generated pki key (#18381)
* rename download service file

* rename file again

* add download-file service to engine

* refactor download button to use service

* refactor download service

* finish refactor download service, make arg  order consistent: filename, content, extension

* add download button to key details

* fix flaky test?
2022-12-15 22:57:20 +00:00

31 lines
658 B
JavaScript

import Engine from 'ember-engines/engine';
import loadInitializers from 'ember-load-initializers';
import Resolver from './resolver';
import config from './config/environment';
const { modulePrefix } = config;
/* eslint-disable ember/avoid-leaking-state-in-ember-objects */
const Eng = Engine.extend({
modulePrefix,
Resolver,
dependencies: {
services: [
'auth',
'download',
'flash-messages',
'namespace',
'path-help',
'router',
'store',
'version',
'wizard',
'secret-mount-path',
],
externalRoutes: ['secrets'],
},
});
loadInitializers(Eng, modulePrefix);
export default Eng;