Vault Automation e9e162fbb0
UI: Create Lease Duration card component + style updates (#8815) (#8870)
* updating components to use hds flex, removing custom css

* creating layout, updating fields to use select instead of dropdown

* conditional render, remove commented code

* adding external link

* update handlers and style

* updating general settings layout so TTL doesnt stretch other cards

* typo

Co-authored-by: Dan Rivera <dan.rivera@hashicorp.com>
2025-08-22 23:14:51 +00:00

26 lines
590 B
TypeScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1
*/
import { action } from '@ember/object';
import Component from '@glimmer/component';
import SecretsEngineResource from 'vault/resources/secrets/engine';
interface Args {
model: SecretsEngineResource;
}
export default class Security extends Component<Args> {
constructor(owner: unknown, args: Args) {
super(owner, args);
}
@action toggleSealWrap() {
this.args.model.seal_wrap = !this.args.model.seal_wrap;
}
@action toggleLocal() {
this.args.model.local = !this.args.model.local;
}
}