mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-22 15:11:07 +02:00
* setup version card * folder restructure * Adding todos, removing test Co-authored-by: Dan Rivera <dan.rivera@hashicorp.com>
26 lines
594 B
TypeScript
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;
|
|
}
|
|
}
|