mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-02 19:50:59 +00:00
Template Editor Improvements (#9434)
* add unmount hook and context to report editor ui feature * Fix tests * Update pui_printing.spec.ts * Update pui_printing.spec.ts * try fix tests * retrigger ci * remove debug messages
This commit is contained in:
src
backend
InvenTree
plugin
samples
frontend
src
components
editors
TemplateEditor
plugins
hooks
tables
settings
tests
@ -175,7 +175,7 @@ class SampleUserInterfacePlugin(SettingsMixin, UserInterfaceMixin, InvenTreePlug
|
||||
{
|
||||
'key': 'sample-template-editor',
|
||||
'title': 'Sample Template Editor',
|
||||
'icon': 'keywords',
|
||||
'icon': 'ti:tags:outline',
|
||||
'source': self.plugin_static_file(
|
||||
'sample_template.js:getTemplateEditor'
|
||||
),
|
||||
@ -190,7 +190,7 @@ class SampleUserInterfacePlugin(SettingsMixin, UserInterfaceMixin, InvenTreePlug
|
||||
{
|
||||
'key': 'sample-template-preview',
|
||||
'title': 'Sample Template Preview',
|
||||
'icon': 'category',
|
||||
'icon': 'ti:category:outline',
|
||||
'source': self.plugin_static_file(
|
||||
'sample_preview.js:getTemplatePreview'
|
||||
),
|
||||
|
@ -4,7 +4,7 @@ export function getTemplatePreview({ featureContext, pluginContext }) {
|
||||
|
||||
featureContext.registerHandlers({
|
||||
updatePreview: (...args) => {
|
||||
console.log("updatePreview", args);
|
||||
console.log("updatePreview", args[0]);
|
||||
}
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user