discourse/app/assets/javascripts/admin/addon/routes/admin-api-keys.js
2024-03-06 18:05:11 +01:00

18 lines
370 B
JavaScript

import { action } from "@ember/object";
import Route from "@ember/routing/route";
import { 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");
}
}