open-vault/ui/app/routes/vault/cluster/replication/replication-base.js
Matthew Irish d509588cd2
Ember update (#5386)
Ember update - update ember-cli, ember-data, and ember to 3.4 series
2018-09-25 11:28:26 -05:00

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'),
});