mirror of https://github.com/hashicorp/consul
21 lines
513 B
JavaScript
21 lines
513 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
*/
|
|
|
|
import { inject as service } from '@ember/service';
|
|
import Route from 'consul-ui/routing/route';
|
|
|
|
import WithBlockingActions from 'consul-ui/mixins/with-blocking-actions';
|
|
|
|
export default class EditRoute extends Route.extend(WithBlockingActions) {
|
|
@service('repository/token') repo;
|
|
@service('settings') settings;
|
|
|
|
async model(params, transition) {
|
|
return {
|
|
token: await this.settings.findBySlug('token'),
|
|
};
|
|
}
|
|
}
|