Ronald 9d21736e9f
Add UI copyright headers files (#16614)
* Add copyright headers to UI files

* Ensure copywrite file ignores external libs
2023-03-14 09:18:55 -04:00

29 lines
552 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import Component from '@glimmer/component';
import { action } from '@ember/object';
import chart from './chart.xstate';
import tabs from './tabs.xstate';
export default class AuthForm extends Component {
constructor() {
super(...arguments);
this.chart = chart;
this.tabsChart = tabs;
}
@action
hasValue(context, event, meta) {
return this.value !== '' && typeof this.value !== 'undefined';
}
@action
focus() {
this.input.focus();
}
}