|
|
@@ -453,14 +453,9 @@ export default class AdminAppContainer extends Container {
|
|
|
/**
|
|
|
* Start v5 page migration
|
|
|
* @memberOf AdminAppContainer
|
|
|
- * @property action takes either 'notNow' or 'upgrade'. 'upgrade' will start or resume migration
|
|
|
+ * @property action takes only 'upgrade' for now. 'upgrade' will start or resume migration
|
|
|
*/
|
|
|
async v5PageMigrationHandler(action) {
|
|
|
- // not wait response and immediately set state to give priority to response time
|
|
|
- if (action === 'notNow') {
|
|
|
- this.changeIsV5Compatible(false);
|
|
|
- }
|
|
|
-
|
|
|
const response = await this.appContainer.apiv3.post('/pages/v5-schema-migration', { action });
|
|
|
const { isV5Compatible } = response.data;
|
|
|
return { isV5Compatible };
|