d509588cd2
Ember update - update ember-cli, ember-data, and ember to 3.4 series
22 lines
677 B
JavaScript
22 lines
677 B
JavaScript
import { alias } from '@ember/object/computed';
|
|
import { inject as service } from '@ember/service';
|
|
import { hash, resolve } from 'rsvp';
|
|
import Route from '@ember/routing/route';
|
|
import UnloadModelRouteMixin from 'vault/mixins/unload-model-route';
|
|
|
|
export default Route.extend(UnloadModelRouteMixin, {
|
|
modelPath: 'model.config',
|
|
fetchMounts() {
|
|
return hash({
|
|
mounts: this.store.findAll('secret-engine'),
|
|
auth: this.store.findAll('auth-method'),
|
|
}).then(({ mounts, auth }) => {
|
|
return resolve(mounts.toArray().concat(auth.toArray()));
|
|
});
|
|
},
|
|
|
|
version: service(),
|
|
rm: service('replication-mode'),
|
|
replicationMode: alias('rm.mode'),
|
|
});
|