contentful-migration
Version:
Migration tooling for contentful
21 lines • 683 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SidebarResetToDefaultAction = void 0;
const action_1 = require("./action");
class SidebarResetToDefaultAction extends action_1.EntityAction {
constructor(contentTypeId) {
super();
this.contentTypeId = contentTypeId;
}
getEntityType() {
return action_1.EntityType.EditorInterface;
}
getEntityId() {
return this.contentTypeId;
}
async applyTo(editorInterfaces) {
editorInterfaces.resetSidebarToDefault();
}
}
exports.SidebarResetToDefaultAction = SidebarResetToDefaultAction;
//# sourceMappingURL=sidebar-reset-to-default.js.map