discourse/app/assets/javascripts/admin/addon/routes/admin-api-keys.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
380 B
JavaScript
Raw Normal View History

import { action } from "@ember/object";
import Route from "@ember/routing/route";
import { inject as service } from "@ember/service";
export default class AdminApiKeysRoute extends Route {
@service router;
@action
show(apiKey) {
this.router.transitionTo("adminApiKeys.show", apiKey.id);
}
@action
new() {
this.router.transitionTo("adminApiKeys.new");
}
}