mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-08 12:09:43 +03:00
8833ec03de
Refs https://github.com/TryGhost/Team/issues/3340 --------- Co-authored-by: Simon Backx <simon@ghost.org>
29 lines
593 B
JavaScript
29 lines
593 B
JavaScript
import Component from '@glimmer/component';
|
|
import {action} from '@ember/object';
|
|
|
|
export default class StyleSelect extends Component {
|
|
get options() {
|
|
return [{
|
|
name: 'Branded',
|
|
value: 'all-in-one'
|
|
}, {
|
|
name: 'Minimal',
|
|
value: 'minimal'
|
|
}];
|
|
}
|
|
|
|
get selectedOption() {
|
|
return this.options.find(o => o.value === this.args.value);
|
|
}
|
|
|
|
@action
|
|
setRecipients(option) {
|
|
this.args.onChange(option.value);
|
|
}
|
|
|
|
@action
|
|
changeOption(option) {
|
|
this.option = option;
|
|
}
|
|
}
|