Ghost/ghost/admin/app/controllers/migrate.js
Paul Davis 86027fdb6f
Add Migrate app (#16458)
Adds the UI for self-serve migrations
2023-03-30 15:40:06 +01:00

18 lines
492 B
JavaScript

import Controller from '@ember/controller';
import {action} from '@ember/object';
import {inject as service} from '@ember/service';
export default class MigrateController extends Controller {
@service migrate;
@service router;
get visibilityClass() {
return this.migrate.isIframeTransition ? 'migrate iframe-migrate-container' : ' migrate fullscreen-migrate-container';
}
@action
closeMigrate() {
this.router.transitionTo('/settings/labs');
}
}