mirror of https://github.com/status-im/consul.git
13 lines
332 B
JavaScript
13 lines
332 B
JavaScript
// import Route from '@ember/routing/route';
|
|
import Route from './index';
|
|
|
|
export default Route.extend({
|
|
templateName: 'dc/kv/index',
|
|
beforeModel: function(transition) {
|
|
const params = this.paramsFor('dc.kv.folder');
|
|
if (params.key === '/' || params.key == null) {
|
|
this.transitionTo('dc.kv.index');
|
|
}
|
|
},
|
|
});
|