Backport 1.15.x: Secrets engine + learn more card to ts and updated at bug on dashboard (#22780)

This commit is contained in:
Kianna
2023-09-05 16:13:03 -07:00
committed by GitHub
parent dd30cdf18a
commit c74207fb42
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}}