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

26 lines
572 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import Component from '@ember/component';
import { inject as service } from '@ember/service';
import Slotted from 'block-slots';
export default Component.extend(Slotted, {
dom: service('dom'),
onchange: function () {},
init: function () {
this._super(...arguments);
this.guid = this.dom.guid(this);
},
actions: {
click: function (e) {
this.dom.clickFirstAnchor(e);
},
change: function (item, items, e) {
this.onchange(e, item, items);
},
},
});