mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 11:54:33 +03:00
86027fdb6f
Adds the UI for self-serve migrations
18 lines
492 B
JavaScript
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');
|
|
}
|
|
}
|