mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-23 19:02:29 +03:00
18 lines
435 B
JavaScript
18 lines
435 B
JavaScript
import Component from '@glimmer/component';
|
|
import {action} from '@ember/object';
|
|
import {inject as service} from '@ember/service';
|
|
|
|
export default class AnnouncementSettingsContentComponent extends Component {
|
|
@service settings;
|
|
|
|
get content() {
|
|
return this.settings.announcementContent;
|
|
}
|
|
|
|
@action
|
|
setContent(html) {
|
|
this.settings.announcementContent = html;
|
|
this.settings.save();
|
|
}
|
|
}
|