mirror of https://github.com/status-im/consul.git
17 lines
340 B
JavaScript
17 lines
340 B
JavaScript
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);
|
|
}
|
|
}
|