feat: manage tag events for new Unit page (#35751)
This commit is contained in:
@@ -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);
|
||||
},
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user