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
|
||||
);
|
||||
|
||||
@@ -470,6 +470,14 @@ body,
|
||||
&.xblock-iframe-content {
|
||||
height: 100%;
|
||||
|
||||
.xblock-title {
|
||||
margin-bottom: 1.5em !important;
|
||||
font-size: 1.5em;
|
||||
font-weight: bold;
|
||||
margin-block-start: 0.83em;
|
||||
margin-block-end: 0.83em;
|
||||
}
|
||||
|
||||
// Reset the max-height to allow the settings list to grow
|
||||
.wrapper-comp-settings .list-input.settings-list {
|
||||
max-height: unset;
|
||||
|
||||
Reference in New Issue
Block a user