58d9b8e382
refs.
7b40393d77
We're improving the usability and possibilities for publishers to
migrate from other platforms such as Substack, Medium or Mailchimp. This
PR applies changes to Ghost Settings to support the new flows, more
specifically:
- moves import and export functions out of Labs to its own setting,
directly available from search and the menu
- adds direct access to various platform migrations
- moves "Delete all content" to a dedicated setting group at the bottom
of all setting
---------
Co-authored-by: Jono Mingard <reason.koan@gmail.com>
18 lines
497 B
JavaScript
18 lines
497 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/migration');
|
|
}
|
|
}
|