Ghost/ghost/admin/app/controllers/settings-x.js
Rishabh bf2a2eeb63 Added route for new admin-x settings
refs https://github.com/TryGhost/Team/issues/3151

- adds route in Admin for opening new settings screen in react
- adds new config for passing `adminX` to Admin
- loads adminX settings from package in Admin UI when new route is opened

Co-authored-by: Peter Zimon <zimo@ghost.org>
2023-05-16 12:23:24 +05:30

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