[VAULT-19341] convert secrets engines, learn more to ts and fix date bug (#22762)

This commit is contained in:
Kianna 2023-09-05 14:44:20 -07:00 committed by GitHub
parent 824a8a5901
commit 2cd8f59845
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 3 deletions

View File

@ -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);
}

View File

@ -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}}

View File

@ -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}}