Ghost/ghost/admin/app/controllers/settings.js
Kevin Ansfield 717e89113c Refactored reset controller to Octane patterns
refs https://github.com/TryGhost/Ghost/issues/14101

- migrated to full native class syntax
- swapped use of `<GhTextInput>` in favor of native `<input>` and removed use of `{{action}}` in associated template
2022-10-07 19:07:51 +01:00

15 lines
403 B
JavaScript

import AboutModal from '../components/modals/settings/about';
import Controller from '@ember/controller';
import {action} from '@ember/object';
import {inject as service} from '@ember/service';
export default class SettingsController extends Controller {
@service modals;
@service upgradeStatus;
@action
openAbout() {
this.advancedModal = this.modals.open(AboutModal);
}
}