2023-08-24 16:07:46 -05:00
|
|
|
/**
|
|
|
|
|
* Copyright (c) HashiCorp, Inc.
|
2024-05-31 11:29:24 -07:00
|
|
|
* SPDX-License-Identifier: BUSL-1.1
|
2023-08-24 16:07:46 -05:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
import Component from '@glimmer/component';
|
|
|
|
|
import { tracked } from '@glimmer/tracking';
|
|
|
|
|
import { action } from '@ember/object';
|
|
|
|
|
|
|
|
|
|
export default class CredentialsPanelIndexComponent extends Component {
|
2024-09-19 14:22:25 -07:00
|
|
|
customOrder = ['username', 'password'];
|
|
|
|
|
|
2023-08-24 16:07:46 -05:00
|
|
|
@tracked isRawApiVisible = false;
|
|
|
|
|
|
|
|
|
|
@action
|
|
|
|
|
toggleCredentials() {
|
|
|
|
|
this.isRawApiVisible = !this.isRawApiVisible;
|
|
|
|
|
}
|
|
|
|
|
}
|