feat: Add blockType to xblockPreview & title to xblock_iframe [FC-0097] (#37362)
- Adds `blockType` and `is_modified` to the `showXBlockLibraryChangesPreview` iframe message. - Add title to the `xblock_iframe` - Add `is-modified` to `studio_xblock_wrapper` - Add `disable_staff_debug_info` as a query param in `render_xblock` - `downstream_is_modified` added to ComponentLink and ContainerLink
This commit is contained in:
@@ -577,6 +577,7 @@ function($, _, Backbone, gettext, BasePage,
|
||||
const headerElement = xblockElement.find('.xblock-header-primary');
|
||||
const upstreamBlockId = headerElement.data('upstream-ref');
|
||||
const upstreamBlockVersionSynced = headerElement.data('version-synced');
|
||||
const isLocallyModified = headerElement.data('is-modified');
|
||||
|
||||
try {
|
||||
if (this.options.isIframeEmbed) {
|
||||
@@ -586,9 +587,11 @@ function($, _, Backbone, gettext, BasePage,
|
||||
payload: {
|
||||
downstreamBlockId: xblockInfo.get('id'),
|
||||
displayName: xblockInfo.get('display_name'),
|
||||
isVertical: xblockInfo.isVertical(),
|
||||
isContainer: false,
|
||||
upstreamBlockId,
|
||||
upstreamBlockVersionSynced,
|
||||
isLocallyModified: isLocallyModified === 'True',
|
||||
blockType: xblockInfo.get('category'),
|
||||
}
|
||||
}, document.referrer
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user