Ghost/ghost/admin/app/components/announcement-settings/content.js
2023-04-20 14:05:37 +04:00

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