mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-12 09:37:02 +02:00
17 lines
424 B
JavaScript
17 lines
424 B
JavaScript
import { alias } from '@ember/object/computed';
|
|
import { inject as service } from '@ember/service';
|
|
import Controller from '@ember/controller';
|
|
|
|
export default Controller.extend({
|
|
rm: service('replication-mode'),
|
|
replicationMode: alias('rm.mode'),
|
|
actions: {
|
|
onEnable(mode) {
|
|
return this.transitionToRoute('mode', mode);
|
|
},
|
|
onDisable() {
|
|
return this.transitionToRoute('index');
|
|
},
|
|
},
|
|
});
|