feat: manage tag events for new Unit page (#35751)

This commit is contained in:
Peter Kulko
2025-03-03 05:59:05 -08:00
committed by GitHub
parent 790fdcf05a
commit cf7e45cf4d
2 changed files with 8 additions and 3 deletions

View File

@@ -719,12 +719,13 @@ function($, _, Backbone, gettext, BasePage,
},
openManageTags: function(event) {
const contentId = this.findXBlockElement(event.target).data('locator');
try {
if (this.options.isIframeEmbed) {
window.parent.postMessage(
{
type: 'openManageTags',
payload: {}
payload: { contentId }
}, document.referrer
);
}
@@ -732,7 +733,6 @@ function($, _, Backbone, gettext, BasePage,
console.error(e);
}
const taxonomyTagsWidgetUrl = this.model.get('taxonomy_tags_widget_url');
const contentId = this.findXBlockElement(event.target).data('locator');
TaggingDrawerUtils.openDrawer(taxonomyTagsWidgetUrl, contentId);
},

View File

@@ -117,7 +117,7 @@ html {
background-color: $primary;
color: $white;
border-color: $transparent;
}
}
&:focus {
outline: 2px $transparent;
@@ -126,6 +126,11 @@ html {
color: $primary;
border-color: $transparent;
}
&.manage-tags-button {
width: 100%;
border-radius: 0;
}
}
}