Vault Automation 8a9c306960
UI: Create version card (#8710) (#8744)
* setup version card

* folder restructure

* Adding todos, removing test

Co-authored-by: Dan Rivera <dan.rivera@hashicorp.com>
2025-08-20 18:06:44 +00:00

26 lines
594 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 SecurityCard 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;
}
}