mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 02:44:33 +03:00
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');
|
||
|
}
|
||
|
}
|