Ghost/ghost/admin/app/components/settings/signup-form/style-select.js
Sanne de Vries 8833ec03de
Updated signup form modal (#16925)
Refs https://github.com/TryGhost/Team/issues/3340

---------

Co-authored-by: Simon Backx <simon@ghost.org>
2023-06-02 16:07:30 +02:00

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;
}
}