mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-05 20:36:26 +02:00
[VAULT-19341] convert secrets engines, learn more to ts and fix date bug (#22762)
This commit is contained in:
parent
824a8a5901
commit
2cd8f59845
@ -4,6 +4,7 @@
|
||||
*/
|
||||
|
||||
import Component from '@glimmer/component';
|
||||
import type SecretEngineModel from 'vault/models/secret-engine';
|
||||
|
||||
/**
|
||||
* @module DashboardSecretsEnginesCard
|
||||
@ -16,7 +17,11 @@ import Component from '@glimmer/component';
|
||||
* @param {array} secretsEngines - list of secrets engines
|
||||
*/
|
||||
|
||||
export default class DashboardSecretsEnginesCard extends Component {
|
||||
interface Args {
|
||||
secretsEngines: SecretEngineModel[];
|
||||
}
|
||||
|
||||
export default class DashboardSecretsEnginesCard extends Component<Args> {
|
||||
get filteredSecretsEngines() {
|
||||
return this.args.secretsEngines?.filter((secretEngine) => secretEngine.shouldIncludeInList);
|
||||
}
|
||||
@ -50,7 +50,7 @@
|
||||
/>
|
||||
<small class="has-left-margin-xs has-text-grey">
|
||||
Updated
|
||||
{{date-format this.updatedAt "MMM dd, yyyy hh:mm:SS"}}
|
||||
{{date-format this.updatedAt "MMM dd, yyyy hh:mm:ss"}}
|
||||
</small>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
@ -79,7 +79,7 @@
|
||||
/>
|
||||
<small class="has-left-margin-xs has-text-grey">
|
||||
Updated
|
||||
{{date-format @updatedAt "MMM dd, yyyy hh:mm:SS"}}
|
||||
{{date-format @updatedAt "MMM dd, yyyy hh:mm:ss"}}
|
||||
</small>
|
||||
</div>
|
||||
{{else}}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user