Files
threshold-ui/ui/admin/app/components/form/managed-group/ldap/index.js
T
2024-05-31 11:29:24 -07:00

25 lines
507 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1
*/
import Component from '@glimmer/component';
import { action } from '@ember/object';
import { tracked } from '@glimmer/tracking';
export default class FormManagedGroupLdapComponent extends Component {
// =attributes
/**
* @type {string}
*/
@tracked newGroup = '';
@action
addGroupName() {
if (this.newGroup) {
this.args.addStringItem('group_names', this.newGroup);
}
this.newGroup = '';
}
}