open-vault/ui/app/routes/vault/cluster/license.js
madalynrose 554446ae4e
Licensing in the UI (#5437)
Add licensing to the UI
2018-10-12 15:03:01 -04:00

23 lines
455 B
JavaScript

import Route from '@ember/routing/route';
import ClusterRoute from 'vault/mixins/cluster-route';
import { inject as service } from '@ember/service';
export default Route.extend(ClusterRoute, {
version: service(),
beforeModel() {
if (this.version.isOSS) {
this.transitionTo('vault.cluster');
}
},
model() {
return this.store.queryRecord('license', {});
},
actions: {
doRefresh() {
this.refresh();
},
},
});