mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-18 21:21:06 +02:00
* move parsing banner to issuer details view only * add tests * fix test typo * remove old test
24 lines
610 B
TypeScript
24 lines
610 B
TypeScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
*/
|
|
|
|
import Component from '@glimmer/component';
|
|
import { tracked } from '@glimmer/tracking';
|
|
import type PkiIssuerModel from 'vault/models/pki/issuer';
|
|
|
|
interface Args {
|
|
issuer: PkiIssuerModel;
|
|
}
|
|
|
|
export default class PkiIssuerDetailsComponent extends Component<Args> {
|
|
@tracked showRotationModal = false;
|
|
|
|
get parsingErrors() {
|
|
if (this.args.issuer.parsedCertificate?.parsing_errors?.length) {
|
|
return this.args.issuer.parsedCertificate.parsing_errors.map((e: Error) => e.message).join(', ');
|
|
}
|
|
return '';
|
|
}
|
|
}
|