vault/ui/lib/pki/addon/controllers/issuers/index.js
claire bontempo 7a7657bd69
UI: Pki key read view (#18087)
* WIP read view for pki keys

* remove options for query

* combine adapter query methods

* fix controller class names

* remove class

* rename adapter method, cleanup template, move formFields to key constructor
2022-11-23 11:45:49 -08:00

15 lines
488 B
JavaScript

import Controller from '@ember/controller';
import { action } from '@ember/object';
import { next } from '@ember/runloop';
import { getOwner } from '@ember/application';
export default class PkiIssuerIndexController extends Controller {
get mountPoint() {
return getOwner(this).mountPoint;
}
// To prevent production build bug of passing D.actions to on "click": https://github.com/hashicorp/vault/pull/16983
@action onLinkClick(D) {
next(() => D.actions.close());
}
}