mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-22 07:01:09 +02:00
* TOTP secrets in the web UI --------- Co-authored-by: Moritz Pflanzer <moritz@pflanzer.eu> Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com> Co-authored-by: Shannon Roberts (Beagin) <beagins@users.noreply.github.com>
18 lines
402 B
JavaScript
18 lines
402 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
import Component from '@glimmer/component';
|
|
import { tracked } from '@glimmer/tracking';
|
|
import { action } from '@ember/object';
|
|
|
|
export default class KeyCreateToggleGroupsComponent extends Component {
|
|
@tracked showGroup = null;
|
|
|
|
@action
|
|
toggleGroup(group, isOpen) {
|
|
this.showGroup = isOpen ? group : null;
|
|
}
|
|
}
|