mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-28 21:33:24 +03:00
cb644b3fd7
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
33 lines
850 B
JavaScript
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);
|
|
}
|
|
}
|