Ghost/ghost/admin/app/controllers/settings.js
Peter Zimon cb644b3fd7 Restructured Audit log IA
refs. https://github.com/TryGhost/Toolbox/issues/356

- renamed page to “History” now to make it less technical
- moved the history page out to the Advanced section in Settings to increase discoverability
- moved the About section from General settings to a modal because that technical data was not connected to General settings
2022-09-06 11:18:07 +02:00

33 lines
850 B
JavaScript

import AboutModal from '../components/modals/settings/about';
import classic from 'ember-classic-decorator';
import {action} from '@ember/object';
import {inject as service} from '@ember/service';
/* eslint-disable ghost/ember/alias-model-in-controller */
import Controller from '@ember/controller';
@classic
export default class SettingsController extends Controller {
@service settings;
@service session;
@service modals;
@service upgradeStatus;
showLeaveSettingsModal = false;
@action
closeLeaveSettingsModal() {
this.set('showLeaveSettingsModal', false);
}
@action
async leavePortalSettings() {
this.settings.rollbackAttributes();
this.set('showLeaveSettingsModal', false);
}
@action
openAbout() {
this.advancedModal = this.modals.open(AboutModal);
}
}