mirror of https://github.com/hashicorp/consul
22 lines
418 B
JavaScript
22 lines
418 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
*/
|
|
|
|
import Component from '@glimmer/component';
|
|
import { tracked } from '@glimmer/tracking';
|
|
import { action } from '@ember/object';
|
|
|
|
export default class Option extends Component {
|
|
@tracked selected;
|
|
|
|
@action
|
|
connect() {
|
|
this.args.select.addOption(this);
|
|
}
|
|
@action
|
|
disconnect() {
|
|
this.args.select.removeOption(this);
|
|
}
|
|
}
|