open-vault/ui/app/routes/vault/cluster/replication/mode/index.js
2018-04-03 09:16:57 -05:00

13 lines
364 B
JavaScript

import Ember from 'ember';
export default Ember.Route.extend({
replicationMode: Ember.inject.service(),
beforeModel() {
const replicationMode = this.paramsFor('vault.cluster.replication.mode').replication_mode;
this.get('replicationMode').setMode(replicationMode);
},
model() {
return this.modelFor('vault.cluster.replication.mode');
},
});