open-vault/ui/app/components/pki/pki-cert-popup.js
Angel Garbarino b06573a903
Move PKI components to PKI Folder (#15963)
* params

* fix tests

* role-pki to pki-role

* role-pki-edit to pki/role-pki-edit

* configure-pki-secret component

* config-pki and config-pki-ca components

* fix tests

* pki-cert-show and pki-cert-popup

* fix
2022-06-14 10:18:06 -06:00

25 lines
542 B
JavaScript

import Component from '@glimmer/component';
import { action } from '@ember/object';
/**
* @module PkiCertPopup
* PkiCertPopup component is the hotdog menu button that allows you to see details or revoke a certificate.
*
* @example
* ```js
* <PkiCertPopup @item={{@item}}/>
* ```
* @param {class} item - the PKI cert in question.
*/
export default class PkiCertPopup extends Component {
get item() {
return this.args.item || null;
}
@action
delete(item) {
item.save({ adapterOptions: { method: 'revoke' } });
}
}