mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-19 08:31:43 +03:00
27 lines
793 B
JavaScript
27 lines
793 B
JavaScript
import Component from '@glimmer/component';
|
|
import {action} from '@ember/object';
|
|
import {inject as service} from '@ember/service';
|
|
|
|
export default class AnnouncementSettingsBackgroundComponent extends Component {
|
|
@service settings;
|
|
|
|
get background() {
|
|
return this.settings.announcementBackground;
|
|
}
|
|
|
|
get options() {
|
|
return [
|
|
{value: 'dark', label: 'Dark', className: 'kg-headerstyle-btn-dark'},
|
|
{value: 'light', label: 'Light', className: 'kg-headerstyle-btn-light'},
|
|
{value: 'accent', label: 'Accent', className: 'kg-headerstyle-btn-accent'}
|
|
];
|
|
}
|
|
|
|
@action
|
|
setBackground(value) {
|
|
this.settings.announcementBackground = value;
|
|
this.settings.save();
|
|
this.args.onChange?.();
|
|
}
|
|
}
|